I've spent quite a bit of time trying to figure out how to do this and
I'm coming up short.
I've got a C++ class where the first argument of the constructor is a
pointer to a typdef'd struct that is used to return an error code.
Something like this:
class MyClass {
MyClass(errStruct *errP, arg1, arg1 )
}
I can't figure out how to tell swig that errP is an OUTPUT parameter. I
naively tried this based on the SWIG example:
extern MyClass::MyClass(errStruct *OUTPUT, arg1, arg2);
but compilation gives me this:
error: declaration of ‘MyClass::MyClass(errStruct*, arg1, arg2)’ outside
of class is not definition
any ideas on how I can do this?
Thanks!
-Aaron
--
Aaron Knister
NASA Center for Climate Simulation (Code 606.2)
Goddard Space Flight Center
(301) 286-2776
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org!
http://sdm.link/slashdot_______________________________________________
Swig-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/swig-user