[mapserver-users] PythonMapscript Installation under Windows

Norman Vine nhv at cape.com
Fri Oct 11 10:59:30 EDT 2002


Michael Schulz writes:
> 
> thanks to your hints, it seems we finally succeeded in buidling python
> mapscript on w2000 with python 2.1.3, swig 1.3.15, msvc7. We had to make
> one more change to the setup.py (changing the name of the module from
> "MapScript" to "mapscript").
> Then another error came up: the function "snprintf" (in mapscript.i) is
> obviously not existing for msvc, we used "vsnprintf" instead.

Try adding this to the top of mapscript.i

#ifdef _MSC_VER
#  define snprintf _snprintf
#endif

and then rerun setup.py

Cheers

Norman




More information about the mapserver-users mailing list