[ODE] ODE on x86_64 machine

Jon Watte (ODE) hplus-ode at mindcontrol.org
Tue Feb 21 10:19:38 MST 2006



Simon Su wrote:

> ODE source code will compile on x86_64 with just
> editing the file ode/test/test_space.cpp, in line 127
> and 128, by changing int to long. 

If you're making 64-bit edits, I suggest using a specific ptr_int type 
(such as size_t or ssize_t) rather than "long". Microsoft, in their 
infinite wisdom, decided that "long" is 32 bits even on 64-bit 
platforms, breaking all existing lp64 code :-(

> Is there a type that I can change udword to for x86_64
> to compile just like the int to long change?

Someone looked at this a while back, and got reasonable results, IIRC. 
You may want to search the list archives for "udword" and "opcode".

Cheers,

			/ h+



More information about the ODE mailing list