Problems compiling examples

Cassius

18-02-2006 06:08:05

Hi

iv started using OgreNewt but have run into some problems in getting the example solution to compile.

I did follow the instructions on directory structure and put the files in these directories:

F:/Programming/Ogre/ogrenew <- Ogre SDK
F:/Programming/Ogre/ogreaddons/OgreNewt <- OgreNewt
F:/Programming/NewtonSDK <-Newton SDK

however this had compile errors all over the place as it could find the files so i set about manualy including all of the needed directories however there are 2 files i cannot solve as shown in this compile error log:


OgreNewt_Main Command line error D2016 : '/O2' and '/RTC1' command-line options are incompatible
Demo07_CustomJoints fatal error LNK1181: cannot open input file 'OgreNewt_Main.lib'
Demo06_SimpleBuoyancy fatal error LNK1181: cannot open input file 'OgreNewt_Main.lib'
Demo05_SimpleVehicle fatal error LNK1181: cannot open input file 'OgreNewt_Main.lib'
Demo04_Raycasting fatal error LNK1181: cannot open input file 'OgreNewt_Main.lib'
Demo03_CollisionCallbacks fatal error LNK1181: cannot open input file 'OgreNewt_Main.lib'
Demo02_Joints fatal error LNK1181: cannot open input file 'OgreNewt_Main.lib'
Demo01_TheBasics fatal error LNK1181: cannot open input file 'OgreNewt_Main.lib'
f:\Programming\Ogre\ogreaddons\OgreNewt\demos\Demo08_RagdollExample\Ragdoll.h(15): fatal error C1083: Cannot open include file: 'tinyxml.h': No such file or directory
f:\Programming\Ogre\ogreaddons\OgreNewt\demos\Demo08_RagdollExample\Ragdoll.h(15): fatal error C1083: Cannot open include file: 'tinyxml.h': No such file or directory


i cannot find were "tinyxml.h" or "OgreNewt_Main.lib" are and have tried including various directories to get these to work.

Does anyone know what i have to include to resolve this issue?

Thanks

Zach Griffin

18-02-2006 08:06:35

Go into the project properties and in under c++ go to optimization->optimization and disable it. Then you should get some other errors which im still tyring to work out.

Cassius

18-02-2006 22:59:18

Thanks that fixed a few problems.

though as you said still have the problems with "tinyxml.h" and "OgreNewt_Main.lib" :(

Zach Griffin

18-02-2006 23:56:17

You can install tinyxml and point your project to use its include files. Same with OgreNewtMain.lib. Ive found the sample directory structure even when set with your directories, the project settings will still not point to them in VC7.1. I just point them directly.

Cassius

25-02-2006 01:12:55

Thanks for the help

iv installed tinyxml and now have 2 final link errors which i can figure out :(

here is the error text from visual studio:


Demo08_RagdollExample error LNK2019: unresolved external symbol "public: __thiscall RagDoll::RagDoll(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class OgreNewt::World *,class Ogre::SceneNode *)" (??0RagDoll@@QAE@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAVWorld@OgreNewt@@PAVSceneNode@Ogre@@@Z) referenced in function "public: virtual bool __thiscall OgreNewtonFrameListener::frameStarted(struct Ogre::FrameEvent const &)" (?frameStarted@OgreNewtonFrameListener@@UAE_NABUFrameEvent@Ogre@@@Z)

Demo08_RagdollExample error LNK2019: unresolved external symbol "public: __thiscall RagDoll::~RagDoll(void)" (??1RagDoll@@QAE@XZ) referenced in function "public: void * __thiscall RagDoll::`scalar deleting destructor'(unsigned int)" (??_GRagDoll@@QAEPAXI@Z)


really at quite a loss as to what is causing these.

btw i have copied the DLLs from the ogre samples in the ogrenewt demo /bin/release folder as i saw it suggested in another thread but to no avail

Thanks