Advertisement

C++ Build Error

Started by August 28, 2001 10:21 PM
7 comments, last by Akido 23 years, 5 months ago
Ok, I''m a newbie, and I have no idea what this means: --------------------Configuration: opegl1 - Win32 Release-------------------- Compiling... Cpp1.cpp Linking... Cpp1.obj : error LNK2001: unresolved external symbol _gluPerspective@32 Cpp1.obj : error LNK2001: unresolved external symbol __imp__glLoadIdentity@0 Cpp1.obj : error LNK2001: unresolved external symbol __imp__glMatrixMode@4 Cpp1.obj : error LNK2001: unresolved external symbol __imp__glViewport@16 Cpp1.obj : error LNK2001: unresolved external symbol __imp__glHint@8 Cpp1.obj : error LNK2001: unresolved external symbol __imp__glDepthFunc@4 Cpp1.obj : error LNK2001: unresolved external symbol __imp__glEnable@4 Cpp1.obj : error LNK2001: unresolved external symbol __imp__glClearDepth@8 Cpp1.obj : error LNK2001: unresolved external symbol __imp__glClearColor@16 Cpp1.obj : error LNK2001: unresolved external symbol __imp__glShadeModel@4 Cpp1.obj : error LNK2001: unresolved external symbol __imp__glEnd@0 Cpp1.obj : error LNK2001: unresolved external symbol __imp__glVertex3f@12 Cpp1.obj : error LNK2001: unresolved external symbol __imp__glColor3f@12 Cpp1.obj : error LNK2001: unresolved external symbol __imp__glBegin@4 Cpp1.obj : error LNK2001: unresolved external symbol __imp__glTranslatef@12 Cpp1.obj : error LNK2001: unresolved external symbol __imp__glClear@4 Cpp1.obj : error LNK2001: unresolved external symbol __imp__wglDeleteContext@4 Cpp1.obj : error LNK2001: unresolved external symbol __imp__wglMakeCurrent@8 Cpp1.obj : error LNK2001: unresolved external symbol __imp__wglCreateContext@4 Release/opegl2.exe : fatal error LNK1120: 19 unresolved externals Error executing link.exe. opegl2.exe - 20 error(s), 0 warning(s)
Akidohttp://www.ru3.cc
Remember to link to opengl32.lib and glu32.lib.

~~~~~~~~~~
Martee
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers
Advertisement
click on
ALT+F7
press link tab
add the files mentioned above in object/lib modules
OpenGL32.lib GLu32.lib GLaux.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib

... are already in that area. Do I need to check something for the final release?
Akidohttp://www.ru3.cc
Any ideas?
Akidohttp://www.ru3.cc
Ekk..
Akidohttp://www.ru3.cc
Advertisement
Did you opengl32.lib and glu32.lib LIB files in the directory C:\Program Files\Microsoft Visual Studio\Vc98\Lib ?

~ Dragonus
you have to link to these libraries in Debug AND Release configuration!

you can also write this links directly in your code (which i prefer):

#pragma comment (lib, "xyz.lib")
...

hope this helps
Thanks dudes!!!
Akidohttp://www.ru3.cc

This topic is closed to new replies.

Advertisement