View Full Version : VC++
hi, i am new at opengl. I cut and paste the code from the nehe site (tutorial 1) into VC. when i compiled, i got the following errors - can anyone tell me what i am doing wrong or how to use VC correctly if i am using it wrong?
08-12-2001, 07:24 PM
Ahh, these errors... I also had them when I was beginning but I already forgot how to solve them. http://www.opengl.org/discussion_boards/ubb/smile.gif
08-13-2001, 04:26 AM
Make sure you have a win32 application and not a console. And also are you linking the opengl libraries ( ie. opengl32.lib, glaux.lib )
08-13-2001, 04:31 AM
And also glu32.lib
to link them there are 2 methods
VC-> project-> settings-> link tab-> object/library modules: enter OpenGL32.lib GLu32.lib GLaux.lib
type the following at the begining of your file (cpp, c, h, whichever)
#pragma comment ( lib, "OpenGL32.lib" )
#pragma comment ( lib, "GLu32.lib" )
#pragma comment ( lib, "GLaux.lib" )
hope it helps
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.