[ODE] VC6 ode0.5 link error

Daniel Moser Tralamazza tylenol at inf.furb.br
Sat May 29 22:28:52 MST 2004


Quoting Russ Smith <russ at q12.org>:

> 
> > collision_space.obj : error LNK2019: unresolved external symbol
> > __ftol2
> 
> this is a new one ... the symbol 'ftol2' is not used anywhere in the ODE
> source so i assume this must be a VC++ thing. is anyone else having this
> problem?
> 
> russ.
> 
> -- 
> Russell Smith
> http://www.q12.org
> 

I just solved :)

#if (_MSC_VER >= 1300) && (WINVER < 0x0500)
//VC7 or later, building with pre-VC7 runtime libraries
extern "C" long _ftol( double ); //defined by VC6 C libs
extern "C" long _ftol2( double dblSource ) { return _ftol( dblSource ); }
#endif

discovered at: http://www.manusoft.com/Resources/ARXTips/Main.stm
I put the code above in ode.ccp 
and now it works !!

Daniel Tralamazza



More information about the ODE mailing list