Archived

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

LowRider

Unresolved External

Recommended Posts

LowRider    122
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
Krunk    122
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