Hello,
I using this basic program in Opengl
#include <windows.h>
#include <gl\glut.h>
void init(void);
void display(void);
int main(int argc, char** argv)
{
glutInit (&argc, argv) ;
glutInitDisplayMode (GLUT_DOUBLE | GLUT_RGB) ;
glutInitWindowSize (400, 100) ;
glutInitWindowPosition (100, 100) ;
glutCreateWindow (“First Chapter - Opening an OpenGL Window”) ;
init() ;
glutDisplayFunc (display) ;
glutMainLoop () ;
return 0 ;
}
void init(void)
{
glClearColor(1.0, 1.0, 1.0, 0.0) ;
glShadeModel(GL_FLAT) ;
}
void display(void)
{
glClear(GL_COLOR_BUFFER_BIT) ;
glutSwapBuffers() ;
}
-
In VC++ I have changed the settings to add appropriate libs
winmm.lib,opengl32.lib, glu32.lib, glaux.lib ,glut32.lib…but
when I try to run I get error as“Cant open include file gl\glut.h” what is the problem?
-
This same program when I try to run in Dev-c++ and enter
proper libs too it compiles successfully but gives out
error as "The TEST_001.EXE file is linked to missing export
GLUT32.DLL:_glutCreateMenuWithExit.what can i do run the program and future programs?
thanks in advance,
anindya