_ftol

Started by
0 comments, last by paradoxnj 17 years, 9 months ago
I'm trying to compile lesson 6 and I keep getting a linker error: undefined reference to '_ftol' in Dev C++. Anyone know what might be the matter?
Advertisement
I know this is old, but what the hell:

inline DWORD FtoDW(float f){	DWORD				d;	_asm	{		fld			f		lea			eax, [d]		fistp		dword ptr[eax]	}	return d;}
Anthony Rufrano
RealityFactory 2 Programmer

This topic is closed to new replies.

Advertisement