Page 1 of 1

Adding new member function

Posted: Sun Jul 13, 2008 1:30 am
by Oberstille
Hello,

I'm trying to add a new member function to COpenGLTexture (on the Mac, using the XCode project provided with the Mac SDK, if that matters). I've added the member function and everything compiles just fine. The app compiles fine, but when I go to link it, I get an "undefined symbol" error--like the member function isn't being exposed in libIrrlicht.a.

Does anyone know what might be going wrong?

Thanks a bunch!

Posted: Sun Jul 13, 2008 6:41 pm
by vitek
After you modify the Irrlicht sources, you have to rebuild the library. Once you rebuild the library, you have to make sure that you link to the new library when you link your project.

Travis

Posted: Sun Jul 13, 2008 11:58 pm
by torleif
You may find extending the class more useful than modifying the source, as it means you need to have responsibility of two code bases (also the license of irrlict means you have to share your modified source).

If you're a good coder and is adding functionality that other people will use, go for gold, we need more of that.

Posted: Fri Jul 18, 2008 7:17 am
by randomMesh
torleif wrote:(also the license of irrlict means you have to share your modified source)
Uhm.. what? It's zlib. You don't even have to mention you're using irrlicht...

See here.