I compile this with Borlanbd C++ builder 6
Well what is worng? I get errors!
What do i need to enter at linker maby?
#include “glut.h”
#include <gl\glu>
int main(int argc, char** argv)
{
glutInit(&argc, argv);
glutInitDisplayMode (GLUT_DOUBLE | GLUT_RGB);
glutCreateWindow (argv[0]);
glutFullScreen();
init ();
glutDisplayFunc(display);
glutReshapeFunc(reshape);
glutMouseFunc(mouse);
glutIdleFunc(spinDisplay);
glutTimerFunc(50, timerFunction, 0);
glutPostRedisplay();
glutMainLoop();
return 0;
}
ERRORS:
[C++ Error] test_project.cpp(11): E2268 Call to undefined function ‘init’
[C++ Error] test_project.cpp(12): E2451 Undefined symbol ‘display’
[C++ Error] test_project.cpp(13): E2451 Undefined symbol ‘reshape’
[C++ Error] test_project.cpp(14): E2451 Undefined symbol ‘mouse’
[C++ Error] test_project.cpp(15): E2451 Undefined symbol ‘spinDisplay’
[C++ Error] test_project.cpp(16): E2451 Undefined symbol ‘timerFunction’