PDA

View Full Version : Help I got error when it compile



zenki
04-15-2009, 09:03 PM
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;
}

dletozeun
04-16-2009, 05:54 AM
Google, may help :)
http://groups.google.com/group/riverbird2005/browse_thread/thread/ae134ca7d8ac23b4

overlay
04-16-2009, 05:55 AM
http://lmgtfy.com/?q=invalid+OMF

Use coff2omf.