[vtkusers] Python wrapping on Windows with .NET 2003
Andrew J. Dolgert
ajd27 at cornell.edu
Sat Jul 24 15:42:57 EDT 2004
You have encountered a classic Windows Python problem. In pyconfig.h, called by Python.h, there is a section which includes libraries on the link line without asking you:
# ifdef _DEBUG
# pragma comment(lib,"python23_d.lib")
# else
# pragma comment(lib,"python23.lib")
# endif /* _DEBUG */
If you do not plan to use the debug version of python when you are debugging either your code or that of the VTK libraries, you would probably have success commenting out the pragmas or changing the top one to read "python23.lib". If you plan to run with the debug version of python, python_d.exe, then I think there are some other things you need to do during compilation.
VTK 4.4 compiles with Python 2.2, and 2.3.
- Drew Dolgert, CTC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040724/0f93fac0/attachment.htm>
More information about the vtkusers
mailing list