Niels
2014-09-30 09:42:55 UTC
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
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
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users