Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Author Topic: [SOLVED]Linker Error when linking: undefined reference to `typeinfo for OIS:  (Read 2934 times)

ronybeck

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 8
    • View Profile

I am building OIS and my project both in CodeBlocks.  I am telling the OIS project to save the library it makes into my binaries directory and then asking my project to link against it there.  I downloaded the source code and built it in Codeblocks on linux. How ever I see the following error when I try to link my project to OIS:

Code: [Select]
../Builds/Linux/Release/libOIS.so: undefined reference to `vtable for OIS::Exception'
../Builds/Linux/Release/ibOIS.so: undefined reference to `typeinfo for OIS::Exception'

Not sure what to do about that really.

I just modified the codeblocks project that comes with OIS a little so that it would dump the library into the directory ../Builds/Linux/Release.  I didn't mo

Any suggestions?

Thanks for reading.
« Last Edit: April 29, 2009, 11:54:11 AM by ronybeck »
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2653
    • View Profile
    • http://www.wreckedgames.com

The Code::Blocks project is missing the OISException.cpp file. You just need to add it. Patches appreciated.
Logged

ronybeck

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 8
    • View Profile

Awesome!  That fixed it.  Actually, the answer is pretty obvious now that I think about it.  As for a patch............. you want me to send the updated codeblocks project?
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2653
    • View Profile
    • http://www.wreckedgames.com

Yeah, updated C::B files would suffice.
Logged

Svenstaro

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 2
    • View Profile

Since nobody did anything even after all that time I went ahead: http://pastebin.com/m64dfea1b
Also, please do another stable release as the last one is quite old.
Another bold request: Please do not use CVS, I find it is a pain to use and it's quite dated on top of that.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2653
    • View Profile
    • http://www.wreckedgames.com

A Patch would be better, but I'll see about adding this. Yes, SVN can be somewhat easier to deal with, though I do not have time to do a full migration to SVN.
Logged