<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>

<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>[vtkusers] Python wrapping on Windows with .NET 2003</TITLE>
</HEAD>
<BODY>
<P dir=ltr><FONT face=Arial color=#000000 size=2>You have encountered a classic 
Windows Python problem.&nbsp; In pyconfig.h, called by Python.h, there is 
a&nbsp;section which includes libraries on the link line without asking 
you:</FONT></P><FONT size=2>
<P dir=ltr><FONT face=Arial color=#000000># ifdef</FONT></FONT><FONT 
size=2><FONT face=Arial color=#000000> _DEBUG</FONT></P></FONT><FONT size=2>
<P dir=ltr><FONT face=Arial color=#000000># pragma</FONT></FONT><FONT 
face=Arial><FONT color=#000000><FONT size=2> </FONT><FONT 
size=2>comment</FONT><FONT size=2>(</FONT><FONT size=2>lib</FONT><FONT 
size=2>,</FONT><FONT size=2>"python23_d.lib"</FONT><FONT 
size=2>)</P></FONT></FONT></FONT><FONT size=2>
<P dir=ltr><FONT face=Arial color=#000000># else</FONT></P>
<P dir=ltr><FONT face=Arial color=#000000># pragma</FONT></FONT><FONT 
face=Arial><FONT color=#000000><FONT size=2> </FONT><FONT 
size=2>comment</FONT><FONT size=2>(</FONT><FONT size=2>lib</FONT><FONT 
size=2>,</FONT><FONT size=2>"python23.lib"</FONT><FONT 
size=2>)</P></FONT></FONT></FONT><FONT size=2>
<P dir=ltr><FONT face=Arial color=#000000># endif</FONT></FONT><FONT face=Arial 
color=#000000 size=2> </FONT><FONT color=#008000 size=2><FONT face=Arial 
color=#000000>/* _DEBUG */</FONT></FONT></P>
<P dir=ltr><FONT face=Arial size=2>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".&nbsp; 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.</FONT></P>
<P dir=ltr><FONT face=Arial size=2>VTK 4.4 compiles&nbsp;with Python 2.2, and 
2.3.</FONT></P>
<P dir=ltr><FONT face=Arial size=2>- Drew Dolgert, CTC</FONT></P>
<P><FONT size=2></FONT>&nbsp;</P>

</BODY>
</HTML>