msvc toolkit compiler build

Didrik Pinte dpinte at itae.be
Thu Mar 30 15:53:34 CEST 2006


Le mercredi 29 mars 2006 à 12:10 +0200, Bernhard Reiter a écrit :
> One step further in building Thuban 1.1.0 with MinGW.

Good news, there is no need for the full  MSVC 7.1 for building
extension on Windows. The Microsoft Visual C++ Toolkit Compiler (a.k.a.
MS Toolkit Compiler) is available freely and can do the trick.

I've followed the following steps and it seems to work :
http://www.vrplumber.com/programming/mstoolkit/ 

1) The first correction to thuban/libraries/thuban/wxproj.cpp:
        adding a #undef LP in a line right after the #undef PVALUE

2) I've updated the setup.py to the wx26 directory and inclusion

3) here is where i'm bloqued :

Here is where i'm stopped :
C:\thubanbuild\Thuban-1.1.0>c:\python24\python setup.py build_ext -I c:
\thubanbuild\wxPython-2.6.3.0\lib\vc_dll\mswuh;c:\thubanbuild
\wxPython-2.6.3.0\include;C:\thubanbuild\proj-4.4.6\src
running build_ext
building 'Lib.wxproj' extension
C:\Program Files\Microsoft Visual C++ Toolkit 2003\bin
\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -DWIN32 -D__WIN32__
-D_WINDOWS -D__WINDOWS__ -DWINVER=0x0400 -D__WIN95__ -DSTRICT
-D__WXMSW__ -DWXUSINGDLL=1 -DSWIG_GLOBAL -DHAVE_CONFIG_H -DW
XP_USE_THREAD=1 -Ilibraries/shapelib -I..\proj-4.4.6\src
-Ilibraries/pyshapelib/ -I..\wxPython-2.6.3.0\lib\mswdllh
-I..\wxPython-2.6.3.0\include -Ic:\thubanbuild\wxPython-2.6.3.0\lib
\vc_dll\mswuh -Ic:\thubanbuild\wxPython-2.6.3.0\include -I C:
\thubanbuild\proj-4.4.6\src -Ic:\python24\include -Ic:\python24
\PC /Tplibraries/thuban/wxproj.cpp /Fobuild\temp.win32-2.4\Release
\libraries/thuban/wxproj.obj wxproj.cpp
..\proj-4.4.6\src\projects.h(110) : warning C4273: '_hypot' :
inconsistent dll linkage
..\wxPython-2.6.3.0\include\wx\wxchar.h(834) : warning C4273:
'_snprintf' : inconsistent dll linkage
libraries\thuban\wxproj.cpp(468) : error C2668: 'sqrt' : ambiguous call
to overloaded function
        C:\Program Files\Microsoft Visual C++ Toolkit 2003\include
\math.h(626):
could be 'long double sqrt(long double)'
        C:\Program Files\Microsoft Visual C++ Toolkit 2003\include
\math.h(578):
or       'float sqrt(float)'
        C:\Program Files\Microsoft Visual C++ Toolkit 2003\include
\math.h(200):
or       'double sqrt(double)'
        while trying to match the argument list '(long)'
error: command '"C:\Program Files\Microsoft Visual C++ Toolkit 2003\bin
\cl.exe"'
 failed with exit status 2

So Bernard, you're further with MinGW than me with MSVC ... What is this
problem of overloaded sqrt function ... Any hint to solve it ?

Didrik

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Ceci est une partie de message
	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20060330/2c1e3b88/attachment.bin


More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)