cnjinhao / nana

a modern C++ GUI library
https://nana.acemind.cn
Boost Software License 1.0
2.3k stars 331 forks source link

Compilation error #611

Open LancerRevX opened 3 years ago

LancerRevX commented 3 years ago

nana version: 1.7.4, downloaded from http://nanapro.org/en-us/

g++ x64 version: 10.2.0 from MSYS2

OS: Windows 10 20H2

started msys2 mingw64, used make in ... /nana/build/makefile/

Error: g++ -o out/objs/paint/image.o -c ../../source/paint/image.cpp -I../../include -I/usr/include/freetype2 -I../../extrlib -g -fexceptions -std=c++11 -Wall -Wextra -Wunused-variable -Wfatal-errors ../../source/paint/image.cpp: In member function 'bool nana::paint::image::open(const string&)': ../../source/paint/image.cpp:146:44: error: no matching function for call to 'std::basic_ifstream<char>::basic_ifstream(<brace-enclosed initializer list>)' 146 | std::ifstream file{ p, std::ios::binary }; | ^ compilation terminated due to -Wfatal-errors. make: *** [makefile:41: out/objs/paint/image.o] Error 1

cnjinhao commented 3 years ago

Please try -std=c++17 option.