[wxPython-users] Cygwin builds of wxWidgets

Robin Dunn robin at alldunn.com
Tue Sep 18 16:29:29 PDT 2007


Steve Holden wrote:
> Technically this is a wxWidgets build problem, but as I am tryng to 
> build wxPython I am hoping someone here can give me an idea as to what's 
> going wrong.
> 
> I'm a little bamboozled. Having made one successful 2.8.5 wxWidgets 
> build I cannot make another as I am getting syntax errors, typified by:
> 
> /c/Steve/Projects/wxWidgets-2.8.5/bld-cygwin/bk-deps g++ -c -o 
> basedll_appbase.o -D__WXMSW__ -I../src/tiff -I../src/jpeg -I../src/png 
> -I../src/regex  -DwxUSE_GUI=0 -DWXMAKINGDLL_BASE -DwxUSE_BASE=1 
> -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES 
> -I/c/Steve/Projects/wxWidgets-2.8.5/bld-cygwin/lib/wx/include/msw-unicode-release-2.8 
> -I../include -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' with no type
> ../include/wx/string.h:715: error: `wxString::wxString(int)' and 
> `wxString::wxString(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
> once for each function it appears in.)
> make: *** [basedll_appbase.o] Error 1

You can avoid using the STL and the std::string by adding --disable-stl 
and --disable-std_string to your configure command-line.



-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list