[ODE] How to compile Triangle Collider?

nlin@nlin.net nlin at nlin.net
Sat Jun 22 12:49:01 2002


Hi,

I've wrestled all day with MSVC trying to get the triangle collider to work,
but am constantly confounded with those wonderful "Microsoft-specific
extensions to the C and C++ languages", namely, compiler warning C4273 dealing
with dllexport linkage specifications. After reading through the MSDN
docs about these "Microsoft-specific extensions to the C and C++ languages"
(to use MSDN's terminology) I'm still none the wiser and I can't get Opcode
1.0, the triangle collider, and ODE to work together. The README for the
triangle collider is a bit terse - where do I compile the CPP files? As part
of the ODE static library? As part of the ODE DLL? As part of my project? None
of the above worked for me; I always got bizarre linkage errors regarding
DLL export conventions. I tried adding entries for the triangle collider cpp
files to the ODE static library makefile, the ODE DLL makefile, and to
a totally statically linked MSVC project workspace, but none worked.

Can anyone point me to a simple set of instructions to get this to work,
or provide me with a compilable example?

Also, does the triangle collider + opcode work under Linux? I started a port
attempt of opcode but again ran up against too many "Microsoft-specific
extensions to the C and C++ languages", so I was wondering if anyone else
had studied this issue in more detail.

Thanks,
-Norman