SWIG

Philip Smith as006d4848 at blueyonder.co.uk
Mon Nov 22 16:56:17 EST 2004


Does anyone use SWIG?????

I'm having trouble patching it to allow me to compile wrappers in Borland 
C++ Builder because Borland will insist on adding underscores to symbols. 
Turn this off and it won't link the Python library.

The answer is to declare init_function and any other exported functions as 
__stdcall.  Easy enough to patch the SWIG file for the init_function but I 
can't for the life of me see how to automate this process for other exports. 
Any ideas??

Phil 





More information about the Python-list mailing list