Sorry to resurrect this old thread:
So I finally ran into the compiler error that Nitro described that
arises when not #define'ing _DEBUG ("You have included some C++/C
library header files with _DEBUG defined and some with _DEBUG not
defined. This will not work correctly. Please have _DEBUG set or clear
consistently.) It appears that this only comes up if your Visual Studio
project generates code for "Multi-threaded Debug DLL". Using
"Multi-threaded Debug" does not cause the problem.
It looks like I may have to resort to Nitro's solution, which involves
manually editing python.h -- yuck.
Bob
Sohail Somani wrote:
>> -----Original Message-----
>> From:
swig-user-bounces@...
>> [mailto:
swig-user-bounces@...] On Behalf Of Nitro
>> Sent: Thursday, June 08, 2006 8:05 AM
>> To: Bob Marinier
>> Cc:
swig-user@...
>> Subject: Re: [Swig-user] problems with python24_d.lib
>>
>>
>>> This seems to work great. The only change I made was to
>>>
>> use %runtime %{
>>
>>> ... %} to insert the code because that causes this to
>>>
>> appear earlier in
>>
>>> the generated code (otherwise is comes after "#include <stdexcept>",
>>> which may or may not matter).
>>>
>> Won't that approach strip the _DEBUG symbol away from too
>> many headers?
>> For example if you #include "myHeader.h" and this header does
>> something
>> like #ifdef _DEBUG somewhere, then this won't work all of a
>> sudden. Can
>> you still debug through the wrappers (with symbol information
>> and such) if
>> _DEBUG is not defined for the parts except python?
>>
>
> Like Matt says, this is not guaranteed to work 100%. I think it should
> work for python though.
>
>
> _______________________________________________
> Swig-user mailing list
>
Swig-user@...
>
https://lists.sourceforge.net/lists/listinfo/swig-user>
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642_______________________________________________
Swig-user mailing list
Swig-user@...
https://lists.sourceforge.net/lists/listinfo/swig-user