I'm Lost

Started by
1 comment, last by maxd gaming 20 years, 4 months ago
Using one of the 1st-3or4 NeHe tutorials (I tryed 2) I can compile fine in Debug, but Link errors in release... Nevermind, just relized libs are only included for the active config --------------------Configuration: glone - Win32 Release-------------------- Compiling... main.cpp Linking... main.obj : error LNK2001: unresolved external symbol _gluPerspective@32 main.obj : error LNK2001: unresolved external symbol __imp__glLoadIdentity@0 main.obj : error LNK2001: unresolved external symbol __imp__glMatrixMode@4 main.obj : error LNK2001: unresolved external symbol __imp__glViewport@16 main.obj : error LNK2001: unresolved external symbol __imp__glHint@8 main.obj : error LNK2001: unresolved external symbol __imp__glDepthFunc@4 main.obj : error LNK2001: unresolved external symbol __imp__glEnable@4 main.obj : error LNK2001: unresolved external symbol __imp__glClearDepth@8 main.obj : error LNK2001: unresolved external symbol __imp__glClearColor@16 main.obj : error LNK2001: unresolved external symbol __imp__glShadeModel@4 main.obj : error LNK2001: unresolved external symbol __imp__glEnd@0 main.obj : error LNK2001: unresolved external symbol __imp__glVertex3f@12 main.obj : error LNK2001: unresolved external symbol __imp__glColor3f@12 main.obj : error LNK2001: unresolved external symbol __imp__glBegin@4 main.obj : error LNK2001: unresolved external symbol __imp__glRotatef@16 main.obj : error LNK2001: unresolved external symbol __imp__glTranslatef@12 main.obj : error LNK2001: unresolved external symbol __imp__glClear@4 main.obj : error LNK2001: unresolved external symbol __imp__wglDeleteContext@4 main.obj : error LNK2001: unresolved external symbol __imp__wglMakeCurrent@8 main.obj : error LNK2001: unresolved external symbol __imp__wglCreateContext@4 Release/glone.exe : fatal error LNK1120: 20 unresolved externals Error executing link.exe. glone.exe - 21 error(s), 0 warning(s) [edited by - Maxd Gaming on December 13, 2003 9:04:04 PM] [edited by - Maxd Gaming on December 13, 2003 9:04:25 PM] [edited by - Maxd Gaming on December 13, 2003 9:04:38 PM] [edited by - Maxd Gaming on December 13, 2003 9:04:49 PM]
The Untitled RPG - |||||||||| 40%Free Music for your gamesOriginal post by capn_midnight 23yrold, is your ass burning from all the kissing it is recieving?
Advertisement
Did you remember to add the OpenGL libraries to the linker? You can also add these lines to somewhere at the top of the code:

#pragma comment (lib, "opengl32.lib")#pragma comment (lib, "glu32.lib")


EDIT: LOL! Good to hear you got it!

[edited by - Ostsol on December 13, 2003 9:11:40 PM]
-Ostsol
Just as an aside, if you #include glut.h in your program, you never have to bother telling the linker about the OpenGL libraries; rather helpfully, it''s already done...

Windows 95/NT - 32 bit extensions and a graphical shell for a 16 bit patch
to an 8 bit operating system originally coded for a 4 bit microprocessor,
written by a 2 bit company that can''t stand 1 bit of competition.
My opinion is a recombination and regurgitation of the opinions of those around me. I bring nothing new to the table, and as such, can be safely ignored.[ Useful things - Firefox | GLee | Boost | DevIL ]

This topic is closed to new replies.

Advertisement