From: Adam A S. <aa...@cs...> - 2009-07-13 20:27:34
|
Here's another one that's confusing me. I have a class that inherits from a specific instantiation of a standard vector, like so: class Thingy:public vector<int> { ... } I tried to run this through SWIG, which naturally complained that vector<int> hasn't been instantiated. Fair enough. So I added this line before my class in my interface file: %template(intVector) vector<int>; and it still gives me the exact same error messages: Warning(401): Nothing known about base class 'vector< int >'. Ignored. Warning(401): Maybe you forgot to instantiate 'vector< int >' using %template. (I also tried adding the %template line after the class--no difference.) Can anybody tell me what I'm doing wrong? Thanks, Adam |