unresolved external symbol __ftol2, Plz help..

--------------------Configuration: ogl_t4 - Win32 Debug--------------------
GLAUX.LIB(tk.obj) : error LNK2001: unresolved external symbol __ftol2
Debug/ogl_t4.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

ogl_t4.exe - 2 error(s), 0 warning(s)

I found that the function “auxDIBImageLoad((LPCSTR)filename)” causes this error.
How to fix it ? Any help appreciated.

seems that the aux-function calls a routine ftol2 which isn’t in any of the libraries you link with.

to solve the problem, you just :wink: have to find the library which includes ftol2.