i am new in this. How does it work anyway? HELP!

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’

Ah plz man it’s urgent.
I really need to know.

lots and lots of things
you shouldn;t just copy people’s code, look at
http://www.lighthouse3d.com/opengl/glut/
that seems to be a pretty good tutorial on getting started with glut

Thanks in advance!

I get this error:
[Linker Error] ‘…/GLUT32.LIB’ contains invalid OMF record, type 0x21 (possibly COFF)

you are using a version of glut32.lib for Microsoft visual c++
What you need to do is find the glut32.dll file then go to a command prompt and type
implib glut32.lib glut32.dll

this will create a Borland compatible library for glut in the same directory as the dll