Compiling OgreODE Demo with vc6

Problems building or running the engine, queries about how to use features etc.
User avatar
nfo_junkie
Gnoblar
Posts: 4
Joined: Sat Jan 08, 2005 5:32 am

Compiling OgreODE Demo with vc6

Post 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?
Mdobele
Halfling
Posts: 55
Joined: Mon Jun 07, 2004 11:01 am

Post 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.
PrimedGames
www.PrimedGames.com

Email Me At
Mdobele( AT )primedgames.com
// Replace AT with @ of course
User avatar
monster
OGRE Community Helper
OGRE Community Helper
Posts: 1098
Joined: Mon Sep 22, 2003 2:40 am
Location: Melbourne, Australia

Post 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;
User avatar
charlie
Greenskin
Posts: 146
Joined: Mon Nov 15, 2004 1:43 pm
Location: Austria

Post 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.
User avatar
nfo_junkie
Gnoblar
Posts: 4
Joined: Sat Jan 08, 2005 5:32 am

Post 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.