Hello,
I am using Windows but it is very convenient for my projects that wxWidgets can be encoded in UTF8 internally.
This is why, I have tried to compile wxWidgets 3.0.1 with MinGW with the options –enable-utf8 (I know that it is supposed to be Unix only but I read here (by Vadim Zeitlin) that it was possible as long as we knew why we wanted it).
I have used MSYS for the compilation.
This is my configure command:
../configure –enable-debug –enable-utf8
Then the following make command returns an error:
make MONOLITHIC=1 BUILD=release DEBUG_FLAG=0
This is the error message:
../src/msw/calctrl.cpp: In member function 'bool wxCalendarCtrl::Create(wxWindow*, wxWindowID, const wxDateTime&, const wxPoint&, const wxSize&, long int, const wxString&)':
../src/msw/calctrl.cpp:112: error: operands to ?: have different types 'const wxScopedWCharBuffer' and 'const wchar_t [14]'
make: *** [advdll_msw_calctrl.o] Error 1
What should I do? (I also managed to compile wxWidgets without –enable-utf8 and then set wxUSE_UNICODE_UTF8 to 1, but when I compile my project, I get linking errors of the type “undefined reference”).
Thank you very much in advance,
Niels