From: Josh C. <jc...@nc...> - 2009-03-03 19:22:07
|
On Tue, 3 Mar 2009, Geoff Barrett wrote: > I'm trying to interface to a C++ class which has a method expecting a > char ** parameter. I can get the argv.i example from the manual > (http://www.swig.org/Doc1.3/Perl5.html#Perl5_nn33) to work just fine on > a plain function but it doesn't seem to do the right thing with a class > method. Here's my header file: > > 20 class simple { > 21 public: > 22 simple(); > 23 simple(char **); > 24 ~simple(); > 25 }; ... > No matching function for overloaded 'new_simple' at > /projects/firepath_WRK1/work/gbarrett/fp_simulator/simple.pm line 59. > destroying simple It may have nothing to do with the fact that it's a method. The difference may be that this function is overloaded (easy to check) and you need to provide a typecheck typemap. Josh |