   Ode Sample Prob
  Hello,i''m testing the sample files from the newest ODE version. Only with two sample files i get some error messages during compiling:g++ -c test_trimesh.cpp -o test_trimesh.o -O3g++ test_trimesh.o resources.o -o test_trimesh.exe -lagl -lalleg -ldrawstuff -lglu32 -lode -mwindows -lglut32 -lopengl32test_trimesh.o(.text+0x552):test_trimesh.cpp: undefined reference to `dGeomTriMeshDataCreate''test_trimesh.o(.text+0x56d):test_trimesh.cpp: undefined reference to `dGeomTriMeshDataBuildSimple''test_trimesh.o(.text+0x583):test_trimesh.cpp: undefined reference to `dCreateTriMesh''make: *** [test_trimesh.exe] Error 1Ca anybody explain me what is going wrong ?Thanks !  
  Hi,i know what the problem is:I have to icnlude the Opcode Library.But i have some problems to compile it with Mingw.I''ve changed the settings file from ode and start the compiler with "make ode-lib". But i get some errors:In file included from ode/src/collision_trimesh_internal.h:41,  from ode/src/collision_trimesh.cpp:31:OPCODE/Opcode.h:47: warning: ignoring #pragma messageIn file included from OPCODE/OPC_IceHook.h:32,  from OPCODE/Opcode.h:72,  from ode/src/collision_trimesh_internal.h:41,  from ode/src/collision_trimesh.cpp:31:OPCODE/Ice/IcePreprocessor.h:17: warning: ignoring #pragma messageOPCODE/Ice/IcePreprocessor.h:108: warning: ignoring #pragma inline_depthIn file included from OPCODE/OPC_IceHook.h:38,  from OPCODE/Opcode.h:72,  from ode/src/collision_trimesh_internal.h:41,  from ode/src/collision_trimesh.cpp:31:OPCODE/Ice/IceFPU.h: In function `float FastSqrt(float)'':OPCODE/Ice/IceFPU.h:47: parse error before `{'' tokenOPCODE/Ice/IceFPU.h:45: warning: unused variable `float retval''OPCODE/Ice/IceFPU.h:53: warning: no return statement in function returning   non-voidOPCODE/Ice/IceFPU.h: In function `float FCMax2(float, float)'':OPCODE/Ice/IceFPU.h:230: `_asm'' undeclared (first use this function)OPCODE/Ice/IceFPU.h:230: (Each undeclared identifier is reported only once for   each function it appears in.)OPCODE/Ice/IceFPU.h:230: parse error before `['' tokenOPCODE/Ice/IceFPU.h:229: warning: unused variable `float Res''OPCODE/Ice/IceFPU.h:240: warning: no return statement in function returning   non-voidOPCODE/Ice/IceFPU.h: In function `float FCMin2(float, float)'':OPCODE/Ice/IceFPU.h:247: `_asm'' undeclared (first use this function)OPCODE/Ice/IceFPU.h:247: parse error before `['' tokenOPCODE/Ice/IceFPU.h:246: warning: unused variable `float Res''OPCODE/Ice/IceFPU.h:257: warning: no return statement in function returning   non-voidOPCODE/Ice/IceFPU.h: In function `float FCMax3(float, float, float)'':OPCODE/Ice/IceFPU.h:264: `_asm'' undeclared (first use this function)OPCODE/Ice/IceFPU.h:264: parse error before `['' tokenOPCODE/Ice/IceFPU.h:263: warning: unused variable `float Res''OPCODE/Ice/IceFPU.h:277: warning: no return statement in function returning   non-voidOPCODE/Ice/IceFPU.h: In function `float FCMin3(float, float, float)'':OPCODE/Ice/IceFPU.h:284: `_asm'' undeclared (first use this function)OPCODE/Ice/IceFPU.h:284: parse error before `['' tokenOPCODE/Ice/IceFPU.h:283: warning: unused variable `float Res''OPCODE/Ice/IceFPU.h:297: warning: no return statement in function returning   non-voidIn file included from OPCODE/OPC_IceHook.h:39,  from OPCODE/Opcode.h:72,  from ode/src/collision_trimesh_internal.h:41,  from ode/src/collision_trimesh.cpp:31:OPCODE/Ice/IceMemoryMacros.h: In function `void StoreDwords(udword*, unsigned   int, unsigned int)'':OPCODE/Ice/IceMemoryMacros.h:58: `_asm'' undeclared (first use this function)OPCODE/Ice/IceMemoryMacros.h:58: parse error before `eax''In file included from OPCODE/OPC_IceHook.h:56,  from OPCODE/Opcode.h:72,  from ode/src/collision_trimesh_internal.h:41,  from ode/src/collision_trimesh.cpp:31:OPCODE/Ice/IceHPoint.h: At global scope:OPCODE/Ice/IceHPoint.h:151: warning: conversion to a base class will never use   a type conversion operatorIn file included from OPCODE/OPC_IceHook.h:61,  from OPCODE/Opcode.h:72,  from ode/src/collision_trimesh_internal.h:41,  from ode/src/collision_trimesh.cpp:31:OPCODE/Ice/IceIndexedTriangle.h:17: use of enum `CubeIndex'' without previous   declarationmake: *** [ode/src/collision_trimesh.o] Error 1ca anybody help me ? ;  I found the following links using google. They may be helpful. Note that both are on the ODE mailing list archives at the main ODE site:http://q12.org/pipermail/ode/2003-November/010493.htmlhttp://q12.org/pipermail/ode/2003-May/008734.html Graham RhodesSenior ScientistApplied Research Associates, Inc. ;  Funny - that message looks just like one I''ve just read on the ODE mailing list :DCouldn''t tell you the answer though. When you say you''re using the newest version do you mean the 0.39 release, or have you grabbed the latest source from CVS? ;  A reply to the Anonymous Poster, instead of Gagagu:I''ve done an initial port of OPCODE 1.3 to *nix (since he apparently ignored the earlier porting effort and didn''t merge any of the changes to his own code), which should allow it to compile under most, if not all, recent builds of GCC. I have no idea if it works (apparently the code once had and possibly still has some runtime bugs that only show up in GCC and only sometimes, I haven''t taken the time to track them down), but it does compile.Here''s a tarball of the quick work (~2 hours) I did. It''s GNU-ified a bit packaging-wise, but you should be able to figure it out if you can figure out how to build the original distribution of OPCODE in something other than MSVC. Like I said, it''s highly untested.I''ll send it off to Pierre Terdiman and see if he''ll consider fixing the numerous compiler- and platform-specific-isms floating around in his code...   