OgreNewt Newton 2.08 linking troubles

PJani

08-09-2009 19:58:28

Hy, im trying to link latest OgreNewt(newton 2.08) with my project but i get first warnings(drectve /DEFAULTLIB:'msvcprt' ... unrecognized)
and then undefined reference to "_execp_list", "_chkstk", and many others in "lib_vs7_md/newton.lib"

i compiled ogrenewt with code::blocks and mingw with no problems. Itried all newton libraries but none of them doesnt link to my main project.

win XP. OGRE 1.6.0.

Which newton library i should use with Code::Blocks?

Any idea?

PJani

08-09-2009 23:30:44

Ok, i somehow linked newton library, but when i link OgreNewt to Ogre aplication i get BasicFrameListener, Body, Collison and other undefined references.

Any idea what could be, iam building static ogrenewt library(.a).

PJani

09-09-2009 01:11:57

Weard thing about this is there is no undefined ref. to OgreNewt::World and to OgreNewt::BasicFrameListener.

Here is build log:

Info: resolving CEGUI::String::npos by linking to __imp___ZN5CEGUI6String4nposE (auto-import)
Info: resolving CEGUI::Singleton::ms_Singleton by linking to __imp___ZN5CEGUI9SingletonINS_13WindowManagerEE12ms_SingletonE (auto-import)
Info: resolving CEGUI::Singleton::ms_Singleton by linking to __imp___ZN5CEGUI9SingletonINS_6LoggerEE12ms_SingletonE (auto-import)
Info: resolving CEGUI::Singleton::ms_Singleton by linking to __imp___ZN5CEGUI9SingletonINS_13SchemeManagerEE12ms_SingletonE (auto-import)
Info: resolving CEGUI::Singleton::ms_Singleton by linking to __imp___ZN5CEGUI9SingletonINS_15ImagesetManagerEE12ms_SingletonE (auto-import)
Info: resolving CEGUI::Window::EventKeyDown by linking to __imp___ZN5CEGUI6Window12EventKeyDownE (auto-import)
Info: resolving CEGUI::PushButton::EventClicked by linking to __imp___ZN5CEGUI10PushButton12EventClickedE (auto-import)
Info: resolving Ogre::Vector3::ZERO by linking to __imp___ZN4Ogre7Vector34ZEROE (auto-import)
Info: resolving Ogre::Vector3::UNIT_Y by linking to __imp___ZN4Ogre7Vector36UNIT_YE (auto-import)
Info: resolving Ogre::Vector3::UNIT_X by linking to __imp___ZN4Ogre7Vector36UNIT_XE (auto-import)
Info: resolving Ogre::Vector3::UNIT_Z by linking to __imp___ZN4Ogre7Vector36UNIT_ZE (auto-import)
Info: resolving Ogre::Math::fDeg2Rad by linking to __imp___ZN4Ogre4Math8fDeg2RadE (auto-import)
Info: resolving Ogre::Math::fRad2Deg by linking to __imp___ZN4Ogre4Math8fRad2DegE (auto-import)
Info: resolving vtable for Ogre::Exceptionby linking to __imp___ZTVN4Ogre9ExceptionE (auto-import)
Info: resolving Ogre::StringUtil::BLANK by linking to __imp___ZN4Ogre10StringUtil5BLANKE (auto-import)
Info: resolving Ogre::Quaternion::IDENTITY by linking to __imp___ZN4Ogre10Quaternion8IDENTITYE (auto-import)
Info: resolving Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME by linking to __imp___ZN4Ogre20ResourceGroupManager27DEFAULT_RESOURCE_GROUP_NAMEE (auto-import)
Info: resolving Ogre::Math::PI by linking to __imp___ZN4Ogre4Math2PIE (auto-import)
Info: resolving Ogre::Math::HALF_PI by linking to __imp___ZN4Ogre4Math7HALF_PIE (auto-import)
Info: resolving vtable for Ogre::MeshPtrby linking to __imp___ZTVN4Ogre7MeshPtrE (auto-import)
Info: resolving Ogre::Vector3::UNIT_SCALE by linking to __imp___ZN4Ogre7Vector310UNIT_SCALEE (auto-import)
Info: resolving Ogre::Matrix3::IDENTITY by linking to __imp___ZN4Ogre7Matrix38IDENTITYE (auto-import)
Info: resolving Ogre::ColourValue::White by linking to __imp___ZN4Ogre11ColourValue5WhiteE (auto-import)
Info: resolving Ogre::ColourValue::Green by linking to __imp___ZN4Ogre11ColourValue5GreenE (auto-import)
Info: resolving Ogre::ColourValue::Blue by linking to __imp___ZN4Ogre11ColourValue4BlueE (auto-import)
Info: resolving Ogre::ColourValue::Red by linking to __imp___ZN4Ogre11ColourValue3RedE (auto-import)
Info: resolving Ogre::ColourValue::Black by linking to __imp___ZN4Ogre11ColourValue5BlackE (auto-import)
Info: resolving Ogre::Math::POS_INFINITY by linking to __imp___ZN4Ogre4Math12POS_INFINITYE (auto-import)
..\project57_prj\obj\Debug\worldobjects\WorldObject.o: In function `ZN12PhysicObjectC2EPN8OgreNewt5WorldESsSsbN4Ogre7Vector3Efbb':
C:/Documents and Settings/PJani/Desktop/project57_code/worldobjects/WorldObject.cpp:40: undefined reference to `OgreNewt::CollisionPrimitives::CompoundCollision::CompoundCollision(OgreNewt::World const*, std::vector >, int)'
C:/Documents and Settings/PJani/Desktop/project57_code/worldobjects/WorldObject.cpp:60: undefined reference to `OgreNewt::Body::Body(OgreNewt::World const*, OgreNewt::Collision* const&, int)'
C:/Documents and Settings/PJani/Desktop/project57_code/worldobjects/WorldObject.cpp:83: undefined reference to `OgreNewt::Body::Body(OgreNewt::World const*, OgreNewt::Collision* const&, int)'
..\project57_prj\obj\Debug\worldobjects\WorldObject.o: In function `ZN12PhysicObjectC1EPN8OgreNewt5WorldESsSsbN4Ogre7Vector3Efbb':
C:/Documents and Settings/PJani/Desktop/project57_code/worldobjects/WorldObject.cpp:40: undefined reference to `OgreNewt::CollisionPrimitives::CompoundCollision::CompoundCollision(OgreNewt::World const*, std::vector >, int)'
C:/Documents and Settings/PJani/Desktop/project57_code/worldobjects/WorldObject.cpp:60: undefined reference to `OgreNewt::Body::Body(OgreNewt::World const*, OgreNewt::Collision* const&, int)'
C:/Documents and Settings/PJani/Desktop/project57_code/worldobjects/WorldObject.cpp:83: undefined reference to `OgreNewt::Body::Body(OgreNewt::World const*, OgreNewt::Collision* const&, int)'
collect2: ld returned 1 exit status
Process terminated with status 1 (1 minutes, 11 seconds)
6 errors, 77 warnings