#### Archived

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.

## 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 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 libsextern "C" long _ftol2( double dblSource ) { return _ftol( dblSource ); }

##### Share on other sites
glaux is depreciated, dont use it.

• ### Game Developer Survey

We are looking for qualified game developers to participate in a 10-minute online survey. Qualified participants will be offered a \$15 incentive for your time and insights. Click here to start!

• 11
• 15
• 21
• 26
• 11