[mapserver-users] PythonMapscript Installation under Windows
Norman Vine
Norman Vine" <nhv@cape.com
Fri, 11 Oct 2002 10:59:30 -0400
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