You do not need to link your program against the dll''s neither against glut.lib.
All you need is glut32.lib and opengl32.lib and perhaps glu32.lib. Be sure to have only those specified in your project.
The dll''s are only needed at runtime, not link time.
NextS
Newbie OpenGL Question- using GLUT
Okay.. I''ve really *ucked something up here, because now I can''t compile ANY OpenGL applications using the simple OpenGL32.lib and Glaux.lib... this is screwed!!! GRRRR
Programming::~Fredric(const Annoy_Ance)
Programming::~Fredric(const Annoy_Ance)
Okay.. since I put in glut.lib and glut32.lib in the LIB folder of my VC++ 6.0 folder, I can''t even build this:
#include // Standard Window header required
#include ''conio.h'' // Console I/O functions
#include ''gl\gl.h'' // OpenGL functions
#include ''gl\glaux.h'' // AUX Library functions
void main(void)
{
// These are the AUX functions to
auxInitDisplayMode(AUX_SINGLE / AUX_RGBA);
auxInitPosition(100,100,250,250);
auxInitWindow("My first OpenGL Program");
// Colors and Crap
glClearColor(0.0f, 0.0f, 1.0f, 1.0f); // red, green, blue, alpha
glClear(GL_COLOR_BUFFER_BIT);
glFlush();
// Stop and wait for a keypress
cprintf("Press any key to close the Window\n");
getch();
}
This is very frustrating for a beginner OpenGL programmer... since I download glut32.lib and put it in the LIB folder, it''s messed compiling and building up completley! PLEASE, SOMEONE HELP ME!
Programming::~Fredric(const Annoy_Ance)
#include // Standard Window header required
#include ''conio.h'' // Console I/O functions
#include ''gl\gl.h'' // OpenGL functions
#include ''gl\glaux.h'' // AUX Library functions
void main(void)
{
// These are the AUX functions to
auxInitDisplayMode(AUX_SINGLE / AUX_RGBA);
auxInitPosition(100,100,250,250);
auxInitWindow("My first OpenGL Program");
// Colors and Crap
glClearColor(0.0f, 0.0f, 1.0f, 1.0f); // red, green, blue, alpha
glClear(GL_COLOR_BUFFER_BIT);
glFlush();
// Stop and wait for a keypress
cprintf("Press any key to close the Window\n");
getch();
}
This is very frustrating for a beginner OpenGL programmer... since I download glut32.lib and put it in the LIB folder, it''s messed compiling and building up completley! PLEASE, SOMEONE HELP ME!
Programming::~Fredric(const Annoy_Ance)
Is the version of glut32.lib you have for the Microsoft or the Borland compiler? They are different -- if it isn''t this, then I don''t know whats wrong
Paul Groves.
http://home.clara.net/paulyg
OpenGL for Beginners
Paul Groves.
http://home.clara.net/paulyg
OpenGL for Beginners
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement