Compilation Problem

Erdem U. A. eua at dsl.ttnet.net.tr
Mon Feb 26 22:37:27 PST 2007


Hi, I needed to compile wx in Windows, unicode, static.
I quest this in forum but no one answers.

I used last gcc and cygwin, OS is WinXP i386:
./configure --disable-shared --enable-unicode --enable-monolithic

I tried to compile wx2.8 at cygwin but I got this error:
*wxwidgets:*
/wx/bk-deps g++ -c -o monolib_appbase.o  -D__WXMSW__     -I./src/tiff
-I./src/jp

eg -I./src/png   -I./src/regex -I./src/expat/lib -DwxUSE_BASE=1
-D_FILE_OFFSET_B

ITS=64 -D_LARGE_FILES
-I/wx/lib/wx/include/msw-unicode-release-static-2.8 -I./in

clude -Wall -Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing
./src/common

/appbase.cpp

In file included from ./include/wx/memory.h:16,

                 from ./include/wx/object.h:20,

                 from ./include/wx/list.h:33,

                 from ./src/common/appbase.cpp:31:

./include/wx/string.h:181: error: expected init-declarator before
"wxStdString"

./include/wx/string.h:181: error: expected `,' or `;' before "wxStdString"

./include/wx/string.h:714: error: expected `,' or `...' before '&' token

./include/wx/string.h:715: error: ISO C++ forbids declaration of
`wxStdString' w

ith no type

./include/wx/string.h:715: error: `wxString::wxString(int)' and
`wxString
<http://www.wxwidgets.org/manuals/2.8.0/wx_wxstring.html#wxstring>::wxStr

ing(int)' cannot be overloaded

./include/wx/string.h: In constructor `wxString::wxString(int)':

./include/wx/string.h:715: error: `s' undeclared (first use this function)

./include/wx/string.h:715: error: (Each undeclared identifier is
reported only o

nce for each function it appears in.)

make: *** [monolib_appbase.o] Error 1


How can I fix this?
I detected that --enable-unicode flag triggers this.
with --disable-unicode, it compiles without problem.

Thank you.








More information about the wx-users mailing list