Jump to content
Site Stability Read more... ×
  • Advertisement


This topic is now archived and is closed to further replies.


__ftol2() error in GLAUX.LIB in new MS SDK

This topic is 5994 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

After downloading the October 2002 version of the Microsoft SDK I noticed that I''m getting undefined symbols __ftol2() in the GLAUX.LIB that came with the SDK when building programs. After doing some research, I think the problem is that __ftol2() is a .NET function. The old GLAUX.LIB that comes with my VC++6 only has __ftol(). I think that maybe Microsoft compiled the GLAUX.LIB in the new SDK with the wrong version of the C-Runtime library (they used a .NET version maybe?). I''m just guessing here though. Has anyone else here encountered this problem before and did you figure out what was causing it? My solution was just to replace the new GLAUX.LIB with the GLAUX.LIB from my original VC++6 installation.

Share this post

Link to post
Share on other sites
I added the following to my stdafx.cpp, which is sort of a hack but fixes it. If you find the "real" solution, please post it.

extern "C" long _ftol( double ); //defined by VC6 C libs
extern "C" long _ftol2( double dblSource ) { return _ftol( dblSource ); }

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!