|
Re: Types are unknown: msg#00173programming.swig
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 R64VecStorage4 is a container for a vector with 4 values of type Real64, which is a double in c++. Every compilation works with no errors, but guile doesn't know the OpenSG-types. So, if I write "#define Real64 double" in *.i or *_wrap.cpp, then guile knows the types, but I don't want to do this for every file in the OpenSG-library. I thought there is a better way to do this, but I don't know it. I have to tell guile, what the OpenSG-types are in c++. I hope it is more clear now, what my problem looks like. Thanks a lot! On Fri, 28 Nov 2003, Matthias Koeppe wrote: > Carl-Nickias Kienle <ckienle@xxxxxxxxxxxxxxxxxxxxxxxxxxx> writes: > > > There are no errors when I am compiling my generateg wrapper, but when I > > want to use some of those types in the script language, > > the guile-interpreter said, that the types are unknown. > > In an strange kind a way the types are not known to guile! > > You should provide more details. What did you try exactly, and what > did Guile say. > > In the original posting, you wrote: > > > 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. > > You can put the following lines into the .i file, so that in the > generated wrapper file the types are declared. > > %{ > #include "OSGBaseTypes.h" > %} > > Does this help? > > -- > Matthias Koeppe -- http://www.math.uni-magdeburg.de/~mkoeppe > _______________________________________________ Swig maillist - Swig@xxxxxxxxxxxxxxx http://mailman.cs.uchicago.edu/mailman/listinfo/swig |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | SWIG C# and plain C: 00173, Mike Aubury |
|---|---|
| Next by Date: | Re: Types are unknown: 00173, David Beazley |
| Previous by Thread: | Re: Types are unknowni: 00173, Matthias Koeppe |
| Next by Thread: | Re: Types are unknown: 00173, David Beazley |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |