why does this error occur?about t.mapping
i compile my texture mapping code with no errors.but when linking it,this error occurs.
--------------------Configuration: gl - Win32 Debug--------------------
Compiling...
gl.cpp
Linking...
gl.obj : error LNK2001: unresolved external symbol _auxDIBImageLoadA@4
Debug/gl.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Edited by - dukenukem on February 14, 2002 7:51:09 PM
You have to link your project with glaux.lib
If you use MSVC you can do that by including this line in your code : #pragma comment(lib, "glaux.lib")
if you use gl.h and glu.h, you should do it with :
#pragma comment(lib, "opengl32.lib")
#pragma comment(lib, "glu32.lib")
Or you have the possibility to add them in your project in the menu :
Project/Setting/Link.
Edited by - bestel on February 14, 2002 8:03:59 PM
If you use MSVC you can do that by including this line in your code : #pragma comment(lib, "glaux.lib")
if you use gl.h and glu.h, you should do it with :
#pragma comment(lib, "opengl32.lib")
#pragma comment(lib, "glu32.lib")
Or you have the possibility to add them in your project in the menu :
Project/Setting/Link.
Edited by - bestel on February 14, 2002 8:03:59 PM
thanks a lot Bestel but it didn''t work or ?
now it gives this error when linking:
Linking...
GLaux.lib(tk.obj) : error LNK2001: unresolved external symbol __imp__RegCloseKey@4
GLaux.lib(tk.obj) : error LNK2001: unresolved external symbol __imp__RegQueryValueExA@24
GLaux.lib(tk.obj) : error LNK2001: unresolved external symbol __imp__RegOpenKeyExA@20
Debug/glsample.exe : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.
now it gives this error when linking:
Linking...
GLaux.lib(tk.obj) : error LNK2001: unresolved external symbol __imp__RegCloseKey@4
GLaux.lib(tk.obj) : error LNK2001: unresolved external symbol __imp__RegQueryValueExA@24
GLaux.lib(tk.obj) : error LNK2001: unresolved external symbol __imp__RegOpenKeyExA@20
Debug/glsample.exe : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement