|
From: William S F. <ws...@fu...> - 2011-10-13 06:19:03
|
On 11/10/11 14:45, Kris Thielemans wrote: > Hi > > I'm new to swig and am trying to wrap a C++ library. When running swig > (2.0.4) I get things like > > Warning 315: Nothing known about 'std::size_t' > Warning 315: Nothing known about 'std::random_access_iterator_tag' > Warning 315: Nothing known about 'std::ptrdiff_t' > > All the time. How do I (portably) avoid these warnings? > > For instance, I have added > #include<cstdio> > In my module statement of the interface file, but that doesn't help. > Read about %include. However, you shouldn't get those error messages if you are using the STL library files shipped with SWIG (wrapping the STL container headers themselves isn't a good idea - the SWIG STL library files should be used instead). If you are using your own container, then look at the SWIG STL library files for ideas on wrapping your own container. William |