I am working on GUI project where I use wxWidgets in Eclipse CDT. Recently, I upgrade GCC to version 5.3.0. Then, when I compile wxWidgets 3.1.0 library, I've got some errors like that :
Code: Select all
g++ -c -o gcc_mswuddll\basedll_any.o -g -O0 -mthreads -DHAVE_W32API_H -D__WXMSW
__ -D_UNICODE -I..\..\lib\gcc_dll\mswud -I..\..\include -W -Wall -DWXBUIL
DING -I..\..\src\tiff\libtiff -I..\..\src\jpeg -I..\..\src\png -I..\..\src\zlib
-I..\..\src\regex -I..\..\src\expat\lib -DwxUSE_GUI=0 -DWXMAKINGDLL_BASE -DwxUSE
_BASE=1 -Wno-ctor-dtor-privacy -MTgcc_mswuddll\basedll_any.o -MFgcc_mswuddll
\basedll_any.o.d -MD -MP ../../src/common/any.cpp
In file included from ..\..\include/wx/crt.h:19:0,
from ../../src/common/any.cpp:24:
..\..\include/wx/wxcrt.h: In function 'int wxStricmp(const char*, const char*)':
..\..\include/wx/wxcrt.h:324:47: error: '_stricmp' was not declared in this scop
e
#define WX_STR_CALL(func, a1, a2) func(a1, a2)
^
..\..\include/wx/wxcrt.h:338:18: note: in expansion of macro 'WX_STR_CALL'
{ return WX_STR_CALL(crtA, s1, s2); } \
^
..\..\include/wx/wxcrt.h:402:5: note: in expansion of macro 'WX_STR_FUNC_NO_INVE
RT'
WX_STR_FUNC_NO_INVERT(int, name, crtA, crtW, forString) \
^
..\..\include/wx/wxcrt.h:459:1: note: in expansion of macro 'WX_STRCMP_FUNC'
WX_STRCMP_FUNC(wxStricmp, wxCRT_StricmpA, wxCRT_StricmpW, wxStricmp_String)
^
..\..\include/wx/wxcrt.h: In function 'int wxStricmp(const char*, const wxScoped
CharBuffer&)':
..\..\include/wx/wxcrt.h:324:47: error: '_stricmp' was not declared in this scop
e
Code: Select all
mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 USE_OPENGL=1 USE_GDIPLUS=1 BUILD=release
thanks,
best regards
ST