Jump to content
  • Advertisement


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


Unresolved External

This topic is 6211 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
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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!