Re: SWIG std::string& passing

2005-05-29 Thread jchiang
Add the line %include stl.i to your .i file. This will make other stl containers available, in addition to string. Make sure you put this line before any include directives for classes that use std::string. SWIG requires classes to be declared before they are used in order for the interfaces to

SWIG std::string& passing

2005-05-28 Thread Leonard J. Reder
Hello, I have been trying to get this simple call to work with a SWIG interface. The problem is I do not know how to pass a const char * or a std::string & in python to SWIG wrapped code. I tried several of the *.i libraries at http://www.swig.org/Doc1.3/Library.html. Most notably the "std_