Page 1 of 1

swig

Posted: Wed Feb 25, 2009 6:43 pm
by zapwow
I've modified mod_opengl. The .h and .cpp files compiled just fine, and I'm trying to re-create the lua wrapper for it. I used the following command:

swig -lua -c++ mod_opengl.i

... but then I get errors when I try to compile the output. I've never used swig before so I'm assuming I've done something wrong. Does anyone know how to use this properly?

thx ^^

Re: swig

Posted: Wed Feb 25, 2009 10:18 pm
by rude
Did I not reply to your PM? I remember writing it ...

Try adding -nodefaultctor.

Re: swig

Posted: Thu Feb 26, 2009 12:21 am
by zapwow
Hey thanks, that worked.
Somehow I never got that PM :shock: