Hi to All,
In building the wxPython-2.7.2.0 sources on WinXp SP1 and VS 2003.net I get the following error:
Preparing CORE...
Preparing GLCANVAS...
Preparing STC...
Preparing ACTIVEX...
Preparing GIZMOS...
running build_ext
building '_gdi_' extension
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe
/c /nologo /Od /MDd /W3 /GX /Z7 /D_DEBUG -DWIN32 -D_WINDOWS -D__WXMSW__
-DWXUSINGDLL=1 -DSWIG_TYPE_TABLE=_wxPython_table -DSWIG_PYTHON_OUTPUT_TUPLE
-DWXP_USE_THREAD=1 -UNDEBUG -D__WXDEBUG__ -Iinclude -Isrc
-IC:\wxPython-src-2.7.2.0\lib\vc_dll\mswd -IC:\wxPython-src-2.7.2.0\include
-IC:\wxPython-src-2.7.2.0\contrib\include -Ic:\Python24\include -Ic:\Python24\PC
/TpC:\wxPython-src-2.7.2.0\wxPython\src\msw\_gdi_wrap.cpp
/Fobuild\temp.win32-2.4\Debug\src\msw\_gdi_wrap.obj /Gy
_gdi_wrap.cpp
C:\wxPython-src-2.7.2.0\include\wx\wxchar.h(868) : warning C4273: '_snprintf' : inconsistent dll linkage
C:\wxPython-src-2.7.2.0\wxPython\src\msw\_gdi_wrap.cpp(3839) : error C2061: syntax error : identifier 'wxDouble'
I am really out of my depth with the _gdi_wrap.cpp error, however, the warning from wxchar.h can be fixed by
changing line 868 from
int snprintf(char *str, size_t size, const char *format, ...);
to
WXDLLIMPEXP_BASE int snprintf(char *str, size_t size, const char *format, ...);
This saves a whole bunch of warning messages.
I also had difficulty with the .bz2 source file. WinZip is unable to unpack bz2 and WinRAR retains the Unix line endings
The command line tools handle the Unix EOLs ok but VS 2003.net and VC++ 6 have real trouble. The workaround
was to unpack with WinRAR and then create a tar ball with MSYS tar which is then unpacked with WinZip which does
the conversions on the fly.
Best regards,
Noel Diviney Ayrenet Pty Ltd,5 Cochrane St.,Mitcham, Vic. 3132, Australia Phone +61 3 9873 7300 email divner@hotmail.com
···
_________________________________________________________________
Be one of the first to try Windows Live Mail.
http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d