Skip to main content
gamedev.net
🔒 Locked

Unresolved External

Started by LowRider Dec 15, 2001 at 7:04 AM 0 replies 200+ views
Original Post
LowRider
LowRider
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
LowRider
Krunk
Krunk
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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.