logo       

Re: Types are unknown: msg#00174

programming.swig

Subject: Re: Types are unknown


On Nov 28, 2003, at 12:59 PM, Carl-Nickias Kienle wrote:

Sorry, maybe I told you not enough details.

The developers of OpenSG defined their own types, for this they used the
standardtypes from c++. All does typedefs are in the file OSGBaseTypes.h.
For everything I want to do, in OpenSG, with types, I need to include
this file. I included the OSGBaseTypes.h like you discribed:
%{
#include "OSGBaseTypes.h"
%}

If I now use a function of the Vector-class there is a error like this:
ERROR: In procedureR64VecStorage4-setValues:
ERROR: Wrong type argument in position 2: 3.3

If you only included the header file in %{ ... %}, then you haven't done enough to tell SWIG about the types. This is because %{ ... %} sections aren't parsed by SWIG. Consider using %include "OSGBaseTypes.h" someplace in the interface file (before the other declarations).

Cheers,
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