I still can't compile but I've got some clues. I looked at the samples that come with wxWidgets. In text.cpp the top of the file says
···
-----------------------------------
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
---------------------------------------
When I compile this wx.h does NOT get included. Here are some of the files that get included
----------------------
"/u/fuego0/myeates//include/wx-2.6/wx/wxprec.h" 1
# 13 "/u/fuego0/myeates//include/wx-2.6/wx/wxprec.h"
# 1 "/u/fuego0/myeates//include/wx-2.6/wx/defs.h" 1
# 21 "/u/fuego0/myeates//include/wx-2.6/wx/defs.h"
# 1 "/u/fuego0/myeates//include/wx-2.6/wx/platform.h" 1
# 190 "/u/fuego0/myeates//include/wx-2.6/wx/platform.h"
# 1 "/u/fuego0/myeates//lib/wx/include/gtk2-ansi-release-2.6/wx/setup.h"
----------------------------------------------
But ....... wxPython.h seems to end up including wx.h no matter what. And this leads to the error
---------------------------------
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:172,
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 include/wx/wxPython/wxPython.h:22,
from contrib/glcanvas/gtk/glcanvas_wrap.cpp:1540:
/opt/local/pkgs/gcc-3.4.5/bin/../lib/gcc/i386-pc-solaris2.10/3.4.5/../../../../i
nclude/c++/3.4.5/cwchar:145: error: `::btowc' has not been declared
-----------------------------------------------------------
So, it appears that the wrapper files are not including the wxWidget headers properly. Am I doing something wrong??
Mathew