From: William S F. <ws...@fu...> - 2007-09-20 21:49:41
|
The wstring typemaps used to be in std_string.i for Java. They are now in std_wstring.i. Please modify your code to include this header file. William David Piepgrass wrote: > I don’t see anything in your log about SWIGTYPE_p_std__wstring, but I > believe all types that start with SWIGTYPE_p_* are generated by SWIG to > represent C pointers (at least that’s how it is in C#, and SWIG Java is > a lot like SWIG C#). In this case SWIGTYPE_p_std__wstring represents a > pointer to std::wstring. If SWIG generates SWIGTYPE_p_std__wstring, it > indicates that SWIG is wrapping something that passes or returns > std::wstring, std::wstring* or std::wstring& and SWIG has not been given > typemaps that can deal with it. > > > > I don’t see how this could be related to switching Java runtimes, however. > > I fetched Java 5.0 Update 12 and SWIG 1.3.31, set up and rebuilt our C+ > code. Then I tried to make the Java portion and am now getting errors > -- Please see log after my name. This used to work with Java 1.4.2 and > SWIG 1.3.24. > > I inherited this code and am not familiar with SWIG. I am now > consulting http://www.swig.org/Doc1.3/SWIGDocumentation.pdf to see what > to do about SWIGTYPE_p_std__wstring (a search turned up nothing). > > I am also looking at our JViToolkit.i and here is an extract: > > . > . > #define SWIGJAVA_WSTRING > %include "std_string.i" > %apply const std::string & {std::string &}; > > %include "enumtypesafe.swg" > %javaconst(1); > . > . > > Are my errors the result of the new SWIG release(s)? Was it (i.e. > SWIGTYPE_p_std__wstring) covered in the documentation? How can I > overcome these errors? What, if anything, I should add/modify in > JViToolkit.i? > > Thanks!, > Loreene > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Swig-devel mailing list > Swi...@li... > https://lists.sourceforge.net/lists/listinfo/swig-devel |