🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

_ftol

Started by
0 comments, last by paradoxnj 17 years, 11 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