cnjinhao / nana

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

Nana GCC compile error #600

Closed Farrukh2019 closed 3 years ago

Farrukh2019 commented 3 years ago

paint\image.cpp was not compiling at line 144

        `std::ifstream file{ p, std::ios::binary };`    

Changed p to p.string() fixed the problem and code compiled. std::ifstream file{ p.string(), std::ios::binary };

Farrukh2019 commented 3 years ago

Kindly check if this correct change , update project.

cnjinhao commented 3 years ago

What's the version of GCC are you using?

Farrukh2019 commented 3 years ago

gcc (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0

cnjinhao commented 3 years ago

8.1 is not recommended, please refer to this https://github.com/cnjinhao/nana/wiki/Troubleshooting-MinGW for detail.

Farrukh2019 commented 3 years ago

thanks @cnjinhao its very helpful information.