Error compiling datetime.cpp

Hi,

I am trying to install wyPython 2.4.0.7 on Solaris 9
(gtk++ 2.2.1, glib 2.2.1, wxWindows 2.4.0 already installed)
but the compiler(gcc 3.2) falls over with the error attached
below.
Can anyone help with this, or are there Solaris binaries
available? I couldn't find any pre-compiled Solaris binaries
on wxPython.org.

thanks,

Denis Grannell

···

*************************

src/common/datetime.cpp: In member function `const wxChar*
   wxDateTime::ParseFormat(const wxChar*, const wxChar*, const
wxDateTime&)':
src/common/datetime.cpp:2923: cannot convert `const wxChar*' to `const
char*'
   for argument `1' to `char* strptime(const char*, const char*, tm*)'
src/common/datetime.cpp:2988: cannot convert `const wxChar*' to `const
char*'
   for argument `1' to `char* strptime(const char*, const char*, tm*)'
make: *** [datetime.o] Error 1

*************************

compiler command:
c++ -c -I./lib/wx/include/gtk2ud-2.4 -I./include -I./src/zlib -I./src/png
-I./src/jpeg -I./src/tiff -threads -I/usr/local/include/gtk-2.0 -I/usr/local
/lib/gtk-2.0/include -I/usr/local/include/atk-1.0 -I/usr/local/include/pango
-1.0 -I/usr/openwin/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/g
lib-2.0/include -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -isystem
/usr/openwin/include -D__WXGTK__ -D__WXDEBUG__ -O2 -MMD -pthreads -D_REEN
TRANT -Wall -fPIC -o datetime.o ./src/common/datetime.cpp

*************************

_________________________________________________________

Denis Grannell, Kapuzinerstr. 45, 80469 Munich, Germany |
Tel: +49 89 2013672 Fax: +49 89 2022875 |
_________________________________________________________|

Denis Grannell wrote:

Hi,

I am trying to install wyPython 2.4.0.7 on Solaris 9
(gtk++ 2.2.1, glib 2.2.1, wxWindows 2.4.0 already installed)

If you have a wxWindows 2.4.0 build aready then it must not be a unicode build or was built on a system that doesn't have strptime()...

but the compiler(gcc 3.2) falls over with the error attached
below.
Can anyone help with this, or are there Solaris binaries
available? I couldn't find any pre-compiled Solaris binaries
on wxPython.org.

Enter a bug report about this and then try doing a non-unicode build. Then wxChar will be the same as char and the code in quesion will compile.

···

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

Hi Robin,

>
> I am trying to install wyPython 2.4.0.7 on Solaris 9
> (gtk++ 2.2.1, glib 2.2.1, wxWindows 2.4.0 already installed)

If you have a wxWindows 2.4.0 build aready then it must not be a unicode
build or was built on a system that doesn't have strptime()...

The system does in fact have strptime() but the problem
was, as you anticipated, that the build wasn't a unicode build.
Thanks a lot for for the tip.

cheers,
Denis