Swig Nothing is known about the base class std :: string ', ignored

I am trying to use swig to create ruby ​​wrappers around a C ++ library. Most of them seem to work, but I have one problem that I'm sure is related to the above warning.

It looks like one of the classes that I am wrapping is inheriting from std :: string.

I see the warning message above when I run swig.

When I call a method on an object in ruby ​​that should return a string, I see this

SWIG :: Type_p_std__string: 0x .....

I think I need some way to fix the above warning so that it works, any ideas?

+4
source share
2 answers

SWIG , std::string .

SWIG std_string.i ++ . %include "std_string.i" , , , .

, %include #include swig.

+4

, SWIG:: Type_p_std__string SWIG, , -. SWIG std::string. , , ; , std::string . SWIG "" STL-, , % include. . http://www.swig.org/Doc2.0/Library.html .i, SWIG.

+5

All Articles