Page 1 of 1

Compiling OgreODE Demo with vc6

Posted: Sat Jan 29, 2005 3:02 am
by nfo_junkie
I'm trying to build the OgreODE landscape demo using a vc6 project file I hacked together from the vc7 project file, and I'm down to 1 error:

Code: Select all

--------------------Configuration: landscape - Win32 Debug--------------------
Compiling...
Landscape.cpp
c:\ogre-win32-v0-15-1\ogrenew\ogreode\include\ogreodevehicle.h(159) : error C2027: use of undefined type 'Vehicle'
        c:\ogre-win32-v0-15-1\ogrenew\ogreode\include\ogreodevehicle.h(10) : see declaration of 'Vehicle'
Error executing cl.exe.

landscape.exe - 1 error(s), 0 warning(s)
I'm sure this has something to do with the compiler settings, but I'm having no luck tracking it down. Anyone else run into this?

Posted: Sat Jan 29, 2005 9:13 am
by Mdobele
I havnt used monsters code before but it may be because you are simply forgetting to include a Header file that Vehicle has been defined in. Take another look through his code and "Vehicle" may be defined outside of OgreOdeVehicle.h somewhere. Just taking a stab though.

Posted: Sat Jan 29, 2005 10:29 am
by monster
Are you using the "Preview" version or the CVS snapshot?
It's more likely that the CVS snapshot will work with VC6 since I think I've included some fixes that have been suggested in this area.

What does line 159 of your version of OgreOdeVehicle.h say? The CVS version makes no mention of Vehicle;

Code: Select all

Geometry*						_geometry;

Posted: Sat Jan 29, 2005 12:35 pm
by charlie
I think there's already a VC6 Version of OgreOde and the examples around. I slightly remember about downloading an E-Mail where it was attached, but as I said I'm not sure.

Posted: Sat Jan 29, 2005 12:49 pm
by nfo_junkie
I did a fresh CVS update, and got the same error, but on line 160 this time, which turns out to be:

Code: Select all

std::vector<Vehicle::Wheel*>	_wheels;
Going to shake google again and see if i can find that vc6 version. Will be getting vc7 as soon as IRS sends me my refund :D so it will moot point soon enough.