|
Re: Types are unknown: msg#00170programming.swig
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! Thanks! On Fri, 28 Nov 2003, David Beazley wrote: > > 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> |
|---|---|---|
| Previous by Date: | Re: Types are unknown: 00170, David Beazley |
|---|---|
| Next by Date: | Re: Types are unknown: 00170, Matthias Koeppe |
| Previous by Thread: | Re: Types are unknowni: 00170, David Beazley |
| Next by Thread: | Re: Types are unknown: 00170, Matthias Koeppe |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |