Massively ridiculous list of errors when compiling

penneydude

15-05-2006 05:48:17

I've been using OGRE for a couple weeks now, and think I'm really starting to get the hang of it, so I've decided to look into OgreNewt for some implementation of physics. I followed this page to try to get it up and running: http://www.ogre3d.org/wiki/index.php/Newton_Game_Dynamics

The only thing I've done in my actual program OgreNewt related is to add #include "OgreNewt.h" with my includes. For whatever reason, I get this massive list of errors when I try to compile it.

In file included from ../../ogrenewt/OgreNewt_Main/inc/OgreNewt_World.h:15,
from ../../ogrenewt/OgreNewt_Main/inc/OgreNewt.h:23,
from trial1.cpp:9:
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Prerequisites.h:32:7: warning: no newline at end of file
In file included from ../../ogrenewt/OgreNewt_Main/inc/OgreNewt.h:23,
from trial1.cpp:9:
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_World.h:173: error: variable or field
`_cdecl' declared void
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_World.h:173: error: parse error
before `(' token
In file included from ../../ogrenewt/OgreNewt_Main/inc/OgreNewt.h:25,
from trial1.cpp:9:
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Body.h:427: error: variable or field
`_cdecl' declared void
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Body.h:427: error: parse error before
`(' token
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Body.h:429: error: variable or field
`_cdecl' declared void
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Body.h:429: error: declaration of `
int OgreNewt::Body::_cdecl'
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Body.h:427: error: conflicts with
previous declaration `int OgreNewt::Body::_cdecl'
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Body.h:429: error: parse error before
`(' token
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Body.h:430: error: variable or field
`_cdecl' declared void
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Body.h:430: error: declaration of `
int OgreNewt::Body::_cdecl'
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Body.h:427: error: conflicts with
previous declaration `int OgreNewt::Body::_cdecl'
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Body.h:430: error: parse error before
`(' token
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Body.h:432: error: declaration of `
int OgreNewt::Body::_cdecl'
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Body.h:427: error: conflicts with
previous declaration `int OgreNewt::Body::_cdecl'
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Body.h:432: error: parse error before
`(' token
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Body.h:434: error: variable or field
`_cdecl' declared void
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Body.h:434: error: declaration of `
int OgreNewt::Body::_cdecl'
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Body.h:427: error: conflicts with
previous declaration `int OgreNewt::Body::_cdecl'
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Body.h:434: error: parse error before
`(' token
In file included from ../../ogrenewt/OgreNewt_Main/inc/OgreNewt_CollisionPrimitives.h:17,
from ../../ogrenewt/OgreNewt_Main/inc/OgreNewt.h:26,
from trial1.cpp:9:
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_TreeCollisionSerializer.h:55: error: variable
or field `_cdecl' declared void
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_TreeCollisionSerializer.h:55: error: parse
error before `(' token
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_TreeCollisionSerializer.h:61: error: variable
or field `_cdecl' declared void
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_TreeCollisionSerializer.h:61: error: declaration
of `int OgreNewt::TreeCollisionSerializer::_cdecl'
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_TreeCollisionSerializer.h:55: error: conflicts
with previous declaration `int OgreNewt::TreeCollisionSerializer::_cdecl'
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_TreeCollisionSerializer.h:61: error: parse
error before `(' token
In file included from ../../ogrenewt/OgreNewt_Main/inc/OgreNewt.h:26,
from trial1.cpp:9:
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_CollisionPrimitives.h:301:49: warning: no newline at end of file
In file included from ../../ogrenewt/OgreNewt_Main/inc/OgreNewt_MaterialPair.h:16,
from ../../ogrenewt/OgreNewt_Main/inc/OgreNewt.h:29,
from trial1.cpp:9:
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_ContactCallback.h:126: error: parse
error before `(' token
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_ContactCallback.h:128: error: declaration
of `int OgreNewt::ContactCallback::_cdecl'
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_ContactCallback.h:126: error: conflicts
with previous declaration `int OgreNewt::ContactCallback::_cdecl'
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_ContactCallback.h:128: error: parse
error before `(' token
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_ContactCallback.h:130: error: variable or field `_cdecl' declared void
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_ContactCallback.h:130: error: declaration
of `int OgreNewt::ContactCallback::_cdecl'
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_ContactCallback.h:126: error: conflicts
with previous declaration `int OgreNewt::ContactCallback::_cdecl'
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_ContactCallback.h:130: error: parse
error before `(' token
In file included from ../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Vehicle.h:16,
from ../../ogrenewt/OgreNewt_Main/inc/OgreNewt.h:31,
from trial1.cpp:9:
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Joint.h:86: error: variable or field
`_cdecl' declared void
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Joint.h:86: error: parse error before
`(' token
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Joint.h:162: error: variable or field
`_cdecl' declared void
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Joint.h:162: error: parse error
before `(' token
In file included from ../../ogrenewt/OgreNewt_Main/inc/OgreNewt.h:31,
from trial1.cpp:9:
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Vehicle.h:202: error: variable or
field `_cdecl' declared void
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Vehicle.h:202: error: parse error
before `(' token
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Vehicle.h:204: error: variable or
field `_cdecl' declared void
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Vehicle.h:204: error: declaration of
`int OgreNewt::Vehicle::_cdecl'
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Vehicle.h:202: error: conflicts with
previous declaration `int OgreNewt::Vehicle::_cdecl'
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Vehicle.h:204: error: parse error
before `(' token
In file included from ../../ogrenewt/OgreNewt_Main/inc/OgreNewt.h:31,
from trial1.cpp:9:
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Vehicle.h:216:37: warning: no newline at end of file
In file included from trial1.cpp:9:
../../ogrenewt/OgreNewt_Main/inc/OgreNewt.h:32:30: OgreNewt_Raycast.h: No such file or directory
In file included from ../../ogrenewt/OgreNewt_Main/inc/OgreNewt.h:35,
from trial1.cpp:9:
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_BasicJoints.h:155: error: parse error
before `(' token
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_BasicJoints.h:247: error: parse error
before `(' token
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_BasicJoints.h:360: error: parse error
before `(' token
In file included from ../../ogrenewt/OgreNewt_Main/inc/OgreNewt.h:37,
from trial1.cpp:9:
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Tools.h:194:7: warning: no newline at end of file
In file included from ../../ogrenewt/OgreNewt_Main/inc/OgreNewt.h:38,
from trial1.cpp:9:
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_BodyIterator.h:80: error: variable or
field `_cdecl' declared void
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_BodyIterator.h:80: error: parse error
before `(' token
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_BodyIterator.h:84: error: parse error
before `.' token
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_BodyIterator.h: In member function `
void OgreNewt::BodyIterator::Init(const OgreNewt::World*)':
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_BodyIterator.h:44: error: `m_world'
undeclared (first use this function)
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_BodyIterator.h:44: error: (Each
undeclared identifier is reported only once for each function it appears
in.)
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_BodyIterator.h: In member function `
void OgreNewt::BodyIterator::go(void (*)(OgreNewt::Body*))':
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_BodyIterator.h:53: error: `m_callback
' undeclared (first use this function)
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_BodyIterator.h:55: error: `
newtonIterator' undeclared (first use this function)
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_BodyIterator.h: At global scope:
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_BodyIterator.h:87: error: ISO C++
forbids defining types within return type
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_BodyIterator.h:87: error: `World'
specified as declarator-id
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_BodyIterator.h:87: error: syntax
error before `*' token
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_BodyIterator.h:88: error: '
IteratorCallback' is used as a type, but is not defined as a type.
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_BodyIterator.h:93: error: parse error
before `}' token
In file included from ../../ogrenewt/OgreNewt_Main/inc/OgreNewt.h:38,
from trial1.cpp:9:
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_BodyIterator.h:95:42: warning: no newline at end of file
In file included from ../../ogrenewt/OgreNewt_Main/inc/OgreNewt.h:39,
from trial1.cpp:9:
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Debugger.h:66: error: variable or
field `_cdecl' declared void
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Debugger.h:66: error: parse error
before `(' token
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Debugger.h:67: error: variable or
field `_cdecl' declared void
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Debugger.h:67: error: declaration of
`int OgreNewt::Debugger::_cdecl'
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Debugger.h:66: error: conflicts with
previous declaration `int OgreNewt::Debugger::_cdecl'
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Debugger.h:67: error: parse error
before `(' token
In file included from ../../ogrenewt/OgreNewt_Main/inc/OgreNewt.h:39,
from trial1.cpp:9:
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_Debugger.h:73:38: warning: no newline at end of file
In file included from ../../ogrenewt/OgreNewt_Main/inc/OgreNewt.h:41,
from trial1.cpp:9:
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_BasicFrameListener.h:23:9: warning: #pragma once is obsolete
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_BasicFrameListener.h:25:34: ExampleFrameListener.h: No such file or directory
In file included from ../../ogrenewt/OgreNewt_Main/inc/OgreNewt.h:41,
from trial1.cpp:9:
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_BasicFrameListener.h:37: error: parse
error before `{' token
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_BasicFrameListener.h:45: error: parse
error before `public'
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_BasicFrameListener.h:47: error: destructors
must be member functions
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_BasicFrameListener.h:49: error: parse
error before `&' token
../../ogrenewt/OgreNewt_Main/inc/OgreNewt_BasicFrameListener.h:55: error: parse
error before `}' token
In file included from trial1.cpp:9:
../../ogrenewt/OgreNewt_Main/inc/OgreNewt.h:109:7: warning: no newline at end of file
make: *** [all] Error 1


It seems that the problem lies mostly with a variable _cdecl that's in most of the .h files for OgreNewt, but I have no idea how to fix this. Any help is appreciated.

walaber

15-05-2006 17:48:56

are you compiling under Linux?

penneydude

16-05-2006 00:59:00

Yeah, I'm using Gentoo. I think I may have actually fixed the problem. I found another thread on here that didn't come up by doing a search for some reason, and it said to change all the _cdecls to _CDECL, and newton.h to Newton.h, and when I did that the errors went away.

walaber

16-05-2006 03:08:40

yeah, I need to make those changes to the CVS and binary archive... I've just been really busy lately...