PDA

View Full Version : Some compiling error:need help



Batou
04-03-2005, 10:58 AM
When i try to compile , error message appears - something about apilist.dll module(windows, not compiler message)Could anyone tell me, whats wrong -
glutInitWindowPosition (1,1);
glutInitWindowSize (200,200);
glutInitDisplayMode (GLUT_RGB);
glutInit(&argc,argv);
glutCreateWindow("Example");
glutDisplayFunc(Display);
glutIdleFunc(Redraw);
- this part goes OK, but when i add glBegin or glVertx (or anythng) to Display func , its crashes...
PS I use lcc-WIN32

dorbie
04-03-2005, 05:27 PM
Crashes or doesn't compile?

Be very specific when asking for help like this.

Try including gl.h and linking to the OpenGL library for starters.

Batou
04-03-2005, 10:16 PM
Its OK now , thank u
all i have to do is move include windows.h to first string