Ogrenewt linker error

Jarkko

23-09-2006 08:41:25

I am trying to build this
http://koti.mbnet.fi/niempi2/testi.zip
simple ogre newton application with code::blocks and minigw but I keep getting following errors.

C:\ohjelmointi\testi\main.cpp:17: undefined reference to `OgreNewt::World::World()'
C:\ohjelmointi\testi\main.cpp:23: undefined reference to `OgreNewt::World::~World()'
C:\ohjelmointi\testi\main.cpp:23: undefined reference to `OgreNewt::World::~World()'
C:\ohjelmointi\testi\main.cpp:23: undefined reference to `OgreNewt::World::~World()'
:: === Build finished: 4 errors, 0 warnings ===

I have added OgreNewt_Main.lib to the additional debendencies. Does ogre newt require some other libraries or is it supposed to work by just adding OgreNewt_Main.lib. If I remove the lines where I use ogrenewt the program builds fine.

walaber

23-09-2006 20:22:59

you just need to link to OgreNewt_Main.lib, and Newton.lib...