problems compiling

Hi
I get an error when trying to compile src/helpers
I get the error ....... ::btowc' has not been declared.

Does helpers.cpp need to include something first before including wxPython_int.h??
Mathew

Here is the full error output
In file included from /usr/local/pkgs/Python-2.4.2/include/python2.4/Python.h:8

···

,
                 from src/helpers.cpp:15:
/usr/local/pkgs/Python-2.4.2/include/python2.4/pyconfig.h:844:1: warning: "_XOP
EN_SOURCE" redefined
<built-in>:83:1: warning: this is the location of the previous definition
In file included from /opt/local/pkgs/gcc-3.4.5/bin/../lib/gcc/i386-pc-solaris2
.10/3.4.5/../../../../include/c++/3.4.5/bits/postypes.h:46,
                 from /opt/local/pkgs/gcc-3.4.5/bin/../lib/gcc/i386-pc-solaris2
.10/3.4.5/../../../../include/c++/3.4.5/iosfwd:50,
                 from /opt/local/pkgs/gcc-3.4.5/bin/../lib/gcc/i386-pc-solaris2
.10/3.4.5/../../../../include/c++/3.4.5/bits/stl_algobase.h:70,
                 from /opt/local/pkgs/gcc-3.4.5/bin/../lib/gcc/i386-pc-solaris2
.10/3.4.5/../../../../include/c++/3.4.5/bits/char_traits.h:46,
                 from /opt/local/pkgs/gcc-3.4.5/bin/../lib/gcc/i386-pc-solaris2
.10/3.4.5/../../../../include/c++/3.4.5/string:47,
                 from /u/fuego0/myeates//include/wx-2.6/wx/string.h:170,
                 from /u/fuego0/myeates//include/wx-2.6/wx/memory.h:20,
                 from /u/fuego0/myeates//include/wx-2.6/wx/object.h:25,
                 from /u/fuego0/myeates//include/wx-2.6/wx/wx.h:16,
                 from include/wx/wxPython/wxPython_int.h:19,
                 from src/helpers.cpp:16:
/opt/local/pkgs/gcc-3.4.5/bin/../lib/gcc/i386-pc-solaris2.10/3.4.5/../../../../
include/c++/3.4.5/cwchar:145: error: `::btowc' has not been declared

Mathew Yeates wrote:

Hi
I get an error when trying to compile src/helpers
I get the error ....... ::btowc' has not been declared.

Does helpers.cpp need to include something first before including wxPython_int.h??
Mathew

Here is the full error output
In file included from /usr/local/pkgs/Python-2.4.2/include/python2.4/Python.h:8
,
                from src/helpers.cpp:15:
/usr/local/pkgs/Python-2.4.2/include/python2.4/pyconfig.h:844:1: warning: "_XOP
EN_SOURCE" redefined
<built-in>:83:1: warning: this is the location of the previous definition
In file included from /opt/local/pkgs/gcc-3.4.5/bin/../lib/gcc/i386-pc-solaris2
.10/3.4.5/../../../../include/c++/3.4.5/bits/postypes.h:46,
                from /opt/local/pkgs/gcc-3.4.5/bin/../lib/gcc/i386-pc-solaris2
.10/3.4.5/../../../../include/c++/3.4.5/iosfwd:50,
                from /opt/local/pkgs/gcc-3.4.5/bin/../lib/gcc/i386-pc-solaris2
.10/3.4.5/../../../../include/c++/3.4.5/bits/stl_algobase.h:70,
                from /opt/local/pkgs/gcc-3.4.5/bin/../lib/gcc/i386-pc-solaris2
.10/3.4.5/../../../../include/c++/3.4.5/bits/char_traits.h:46,
                from /opt/local/pkgs/gcc-3.4.5/bin/../lib/gcc/i386-pc-solaris2
.10/3.4.5/../../../../include/c++/3.4.5/string:47,
                from /u/fuego0/myeates//include/wx-2.6/wx/string.h:170,
                from /u/fuego0/myeates//include/wx-2.6/wx/memory.h:20,
                from /u/fuego0/myeates//include/wx-2.6/wx/object.h:25,
                from /u/fuego0/myeates//include/wx-2.6/wx/wx.h:16,
                from include/wx/wxPython/wxPython_int.h:19,
                from src/helpers.cpp:16:
/opt/local/pkgs/gcc-3.4.5/bin/../lib/gcc/i386-pc-solaris2.10/3.4.5/../../../../

include/c++/3.4.5/cwchar:145: error: `::btowc' has not been declared

You could try searching through the system headers and find which one declare btwc and then add a #include for that header.

···

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