I am trying to compile wxWidgets 3.2.2.1 using MinGW that came in with Code::Blocks.
I used the following settings for compiling (which is also the same in the config.gcc file)
mingw32-make.exe -f makefile.gcc USE_XRC=1 SHARED=0 MONOLITHIC=0 BUILD=release UNICODE=0
At the end of the compilation, I get this error message:
../../src/msw/main.cpp: In function 'int wxEntry()':
../../src/msw/main.cpp:359:72: error: no matching function for call to 'wxEntry(int&, wchar_t**)'
return wxEntry(wxMSWCommandLineGetArgc(), wxMSWCommandLineGetArgv());
^
../../src/msw/main.cpp:182:5: note: candidate: 'int wxEntry(int&, wxChar**)'
int wxEntry(int& argc, wxChar **argv)
^~~~~~~
../../src/msw/main.cpp:182:5: note: no known conversion for argument 2 from 'wchar_t**' to 'wxChar**' {aka 'char**'}
../../src/msw/main.cpp:355:5: note: candidate: 'int wxEntry()'
int wxEntry()
^~~~~~~
../../src/msw/main.cpp:355:5: note: **candidate expects 0 arguments, 2 provided**
mingw32-make.exe: *** [makefile.gcc:12809: gcc_msw\baselib_main.o] Error 1
I don't think there's anything wrong with my compiler because I tried building and running simple C and C++ codes in Code::Blocks without any problem. Now I want to create a wxWidgets project.
I tried downloading the wxWidgets installation file again and recompiled it but I still got the same error.
Any help will be greatly appreciated. Thanks.