Jump to content
  • Advertisement

Archived

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

mehoron

OpenGL Little Extern problem when creating OpenGL base

This topic is 5467 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

openGL Window.obj : error LNK2001: unresolved external symbol __imp__glLoadIdentity@0 openGL Window.obj : error LNK2001: unresolved external symbol __imp__glMatrixMode@4 openGL Window.obj : error LNK2001: unresolved external symbol __imp__glViewport@16 openGL Window.obj : error LNK2001: unresolved external symbol __imp__wglDeleteContext@4 openGL Window.obj : error LNK2001: unresolved external symbol __imp__wglMakeCurrent@8 openGL Window.obj : error LNK2001: unresolved external symbol __imp__wglCreateContext@4 openGL Window.obj : error LNK2001: unresolved external symbol __imp__glEnd@0 openGL Window.obj : error LNK2001: unresolved external symbol __imp__glVertex3f@12 openGL Window.obj : error LNK2001: unresolved external symbol __imp__glBegin@4 openGL Window.obj : error LNK2001: unresolved external symbol __imp__glColor3f@12 openGL Window.obj : error LNK2001: unresolved external symbol __imp__glRotatef@16 openGL Window.obj : error LNK2001: unresolved external symbol __imp__glTranslatef@12 openGL Window.obj : error LNK2001: unresolved external symbol __imp__glClear@4 Im getting those silly errors, anyone know the prob.??

Share this post


Link to post
Share on other sites
Advertisement
You''re not linking in the appropriate OpenGL libraries.


How appropriate. You fight like a cow.

Share this post


Link to post
Share on other sites
god damn it i have the gl.h glu.h and the glaux.h WTF!!! Unless its an older version of those files?
BTW I AM HUGE NOOB AT OPENGL

[edited by - mehoron on October 7, 2003 12:10:04 AM]

Share this post


Link to post
Share on other sites
you have to link in the LIBRARIES (.lib files) in addition to including the headers.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
there in my Lib folder OPENGL32.lib glu.lib and glaux.lib and that folder is in my directorys under tools/options

Share this post


Link to post
Share on other sites
what compiler/IDE do you use?

there is an option somewhere to list the libraries to link to... i use the borland commands-line one, so i have to put "-lglaux" in the command line (for example; i don''t actually use glaux)...

the lib folder thing tells it where to look, but you still have to tell it to LINK the libs you need!

Share this post


Link to post
Share on other sites
can''t help you with that (maybe someone else will)...

look in your documentation/help to find out how to link a library into your project.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!