i recently bought the “OpenGL Superbible” book and it gives a short program. It says to install certain dll files of glut in various directories. I did exacly what it said but when i try to compile it give me these errors:
Microsoft® Windows 98
©Copyright Microsoft Corp 1981-1998.
C:\WINDOWS\Desktop>cd\
C:>cd borland\bcc55\bin
C:\Borland\bcc55\Bin>bcc32 c: est.cpp
Borland C++ 5.5 for Win32 Copyright © 1993, 2000 Borland
c: est.cpp:
Turbo Incremental Link 5.00 Copyright © 1997, 2000 Borland
Error: Unresolved external ‘glutInitDisplayMode’ referenced from C:\BORLAND\BCC5
5\BIN\TEST.OBJ
Error: Unresolved external ‘glutCreateWindow’ referenced from C:\BORLAND\BCC55\B
IN\TEST.OBJ
Error: Unresolved external ‘glutDisplayFunc’ referenced from C:\BORLAND\BCC55\BI
N\TEST.OBJ
Error: Unresolved external ‘glutMainLoop’ referenced from C:\BORLAND\BCC55\BIN\T
EST.OBJ
C:\Borland\bcc55\Bin>
===================
Now here’s my c++ code:
#include <windows.h>
#include <gl\glut.h>
void RenderScene(void)
{
glClear(GL_COLOR_BUFFER_BIT);
glFlush();
}
void SetupRC(void)
{
glClearColor(0.0f, 0.0f, 1.0f, 1.0f);
}
void main(void)
{
glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
glutCreateWindow(“Simple”);
glutDisplayFunc(RenderScene);
SetupRC();
glutMainLoop();
}
PPPPLLLLLLZZZZZ help me!!!