Hi friends, this my first program to compile and i have already read from wiki help.
but i still get error
my code i take from the book opengl
I have already follow the procedur
I compile with borland c++ 5.02
Make Failed and i got error massage :
Info :Linking C:\Documents and Settings\Administrator\My Documents\opengl.exe
Error: Error: ‘C:\BC5\LIB\GLUT32.LIB’ contains invalid OMF record, type 0x21
is there any one help me ? … please
#include"glut.h"
#include"windows.h" // the same with glu.h
///////////////////////////////////////////////////////////
// Called to draw scene
void RenderScene(void)
{
// Clear the window with current clearing color
glClear(GL_COLOR_BUFFER_BIT);
// Flush drawing commands
glFlush();
}
///////////////////////////////////////////////////////////
// Set up the rendering state
void SetupRC(void)
{
glClearColor(0.0f, 0.0f, 1.0f, 1.0f);
}
///////////////////////////////////////////////////////////
// Main program entry point
//void main(void)
int main(int argc, char* argv[])
{
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_SINGLE | GLUT_RGBA);
glutCreateWindow("Simple");
glutDisplayFunc(RenderScene);
SetupRC();
glutMainLoop();
return 0;
}