Trouble using wxWidgets 3.0.2 library under Mingw 64

前端 未结 1 2033
醉梦人生
醉梦人生 2021-01-13 07:39

Here\'s how I compiled wxWidgets libraries.

Download https://sourceforge.net/projects/wxwindows/files/3.0.2/wxMSW-Setup-3.0.2.exe



        
相关标签:
1条回答
  • 2021-01-13 08:11

    Finally, I figured out how to build WxWidgets with MingW Drangon 64 bit.

    you should not set CXX flags to -std=c++11.

    Here's note that I found in WxWidgets folder. There lies my problem!

    C++11 note: If you want to compile wxWidgets in C++11 mode, you currently have to use -std=gnu++11 switch as -std=c++11 disables some extensions that wxWidgets relies on. I.e. please use CXXFLAGS="-std=gnu++11".

    Download https://sourceforge.net/projects/wxwindows/files/3.0.2/wxMSW-Setup-3.0.2.exe

    set path=C:\mingw64\bin
    cd C:\wxWidgets-3.0.2\build\msw
    
    mingw32-make -f makefile.gcc CXXFLAGS="-std=gnu++11" BUILD=debug UNICODE=1 SHARED=1
    mingw32-make -f makefile.gcc CXXFLAGS="-std=gnu++11" BUILD=release UNICODE=1 SHARED=1
    mingw32-make -f makefile.gcc CXXFLAGS="-std=gnu++11" BUILD=debug UNICODE=1 SHARED=0
    mingw32-make -f makefile.gcc CXXFLAGS="-std=gnu++11" BUILD=release UNICODE=1 SHARED=0
    
    0 讨论(0)
提交回复
热议问题