[ODE] Windows mingw compile problems

Andreas Volz lists at brachttal.net
Sat Apr 10 12:58:40 MST 2004


Am Sat, 10 Apr 2004 08:51:11 +0100 schrieb Adam D. Moss:

>  > I tried to compile OPCODE with
> > mingw, but I failed. The provided Makefile is for unix I think. Where 
> > is the mingw Makefile?
> 
> The provided Makefile should work for mingw32.  What was the
> problem?

c:\src\ode-0.039\OPCODE>make
gcc -c -o OPC_AABBCollider.o -g -O2 -I. -fno-rtti -fno-exceptions OPC_AABBCollid
er.cpp
In file included from OPC_IceHook.h:38,
                 from Opcode.h:72,
                 from Stdafx.h:19,
                 from OPC_AABBCollider.cpp:31:
Ice/IceFPU.h: In function `float FastSqrt(float)':
Ice/IceFPU.h:47: parse error before `{' token
Ice/IceFPU.h: In function `float FCMax2(float, float)':
Ice/IceFPU.h:230: `_asm' undeclared (first use this function)
Ice/IceFPU.h:230: (Each undeclared identifier is reported only once for each
   function it appears in.)
Ice/IceFPU.h:230: parse error before `[' token
Ice/IceFPU.h: In function `float FCMin2(float, float)':
Ice/IceFPU.h:247: `_asm' undeclared (first use this function)
Ice/IceFPU.h:247: parse error before `[' token
Ice/IceFPU.h: In function `float FCMax3(float, float, float)':
Ice/IceFPU.h:264: `_asm' undeclared (first use this function)
Ice/IceFPU.h:264: parse error before `[' token
Ice/IceFPU.h: In function `float FCMin3(float, float, float)':
Ice/IceFPU.h:284: `_asm' undeclared (first use this function)
Ice/IceFPU.h:284: parse error before `[' token
In file included from OPC_IceHook.h:39,
                 from Opcode.h:72,
                 from Stdafx.h:19,
                 from OPC_AABBCollider.cpp:31:
Ice/IceMemoryMacros.h: In function `void StoreDwords(udword*, unsigned int,
   unsigned int)':
Ice/IceMemoryMacros.h:58: `_asm' undeclared (first use this function)
Ice/IceMemoryMacros.h:58: parse error before `eax'
In file included from OPC_IceHook.h:56,
                 from Opcode.h:72,
                 from Stdafx.h:19,
                 from OPC_AABBCollider.cpp:31:
Ice/IceHPoint.h: At global scope:
Ice/IceHPoint.h:151: warning: conversion to a base class will never use a type
   conversion operator
In file included from OPC_IceHook.h:61,
                 from Opcode.h:72,
                 from Stdafx.h:19,
                 from OPC_AABBCollider.cpp:31:
Ice/IceIndexedTriangle.h:17: use of enum `CubeIndex' without previous
   declaration
make: *** [OPC_AABBCollider.o] Error 1

What do you think about this errors?

I looked into the source and there are some #ifdef WIN32 scopes, perhaps
this could be important? Should there be an modified Makefile with -DWIN32?
I tried it, but got the same results.

regards
Andreas


More information about the ODE mailing list