Examples\pde build problem, SWIG with NT and VC++
Mike Haspert
mike_haspert at credence.com
Tue Jun 19 20:33:18 EDT 2001
I eventually found the answer in swig.org's archives.
For the curious:
Removing extern "C" is correct, but don't edit the wrapper:
Patch python.swg and pyexp.swg so that #include "python.h" is above
extern "C".
mike_haspert at credence.com (Mike Haspert) wrote in message news:<fab90324.0106180850.1b30e0b4 at posting.google.com>...
> I am new to Python and SWIG. I managed to build the pde example in the SWIG
> doc using VC++6.0, Python2.1, and SWIG1.1, but only after commenting out
> extern "C" around #include python.h. in pde_wrap.cpp (and changing the extension
> of the output file from .c to .cpp). Everything seems to work but I am not confident
> I've done the right thing and suspect that I'm doing a newbie thing like using/not using
> some option incorrectly.
>
> Should I expect the wrapper file to need tweaks or not?
> Has anyone working with SWIG and VC++ built this example?
> If so, did you hit this problem, and do you have a better idea than tweaking the
> wrapper?
>
> Thanks in advance for any help.
> -mlh
More information about the Python-list
mailing list