Jump to content
  • Advertisement

Archived

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

LowRider

Unresolved External

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

Hi, I''m new to OpenGL programming, I tried compiling my first OpenGL app (just an empty window) but my compiler complains: with the glaux.h lib: cannot convert void(*)() to void(__stdcall *)() with the glut.h lib: unresolved external ''glutXxxxXxxx'' referenced from program xxx.cpp there''s several of the last error (glutSwapBuffer, glutMainLoop, etc.) What am I doing wrong? I tried both Borland an Microsoft Thanx! LowRider

Share this post


Link to post
Share on other sites
Advertisement
Are you telling the compiler to link the library file for glaux/glut? You need to have:

#include <glut.h>

in your source file, but you also need to link with the corresponding library. If you`re using MSVC it will probably be called glut.lib or something similar.

EDIT: Messed up the > and <

Edited by - Krunk on December 15, 2001 8:16:54 AM

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!