logo       

Re: Types are unknown: msg#00169

programming.swig

Subject: Re: Types are unknown


On Nov 28, 2003, at 8:56 AM, Carl-Nickias Kienle wrote:

Hello everyone!

I want to generate a swig-interface for OpenSG.
In OpenSG, there is a header-file(OSGBaseTypes.h), in which all
default-types from c++ are defined with typedef into OpenSG-types(also
c++). I generated a interface for the OSGVector.h, but this interface has
problems with the OpenSG-BaseTypes. I can solve this problem, by inserting
"#define Real64 double..."(in the *.i or in the *wrap.cpp), but I hope
there is a more elegant solution of this problem.
How can I tell swig in the *.i-file about the BaseTypes, I tried it with
some typedefs, but those were toally ignored. I included the
OSGBaseTypes.h, but after the generating of the wrapper, the types are
unknown. I hope I made myself clear and thanks a lot!
Greetings!


SWIG is no different than the C/C++ compiler. If you want a type to be known, then define it in the normal way (typedef, classes, structures, etc.).
Also, what do you mean the "types are unknown?" Are you getting warning messages? Does the code not compile?

-- Dave

_______________________________________________
Swig maillist - Swig@xxxxxxxxxxxxxxx
http://mailman.cs.uchicago.edu/mailman/listinfo/swig



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise