Archived

This topic is now archived and is closed to further replies.

I'm Lost

This topic is 5113 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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]

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites