Subj : OpenGL To : borland.public.cpp.borlandcpp From : "John Doe" Date : Mon Aug 25 2003 06:30 pm I am using Borland C++ Builder 6. This is my first exposure to C++ and openGL. I do use JBuilder. Now the problem and I think its actually a common one but I can't seem to fix it. My code: #include void Scene1() { glClear(GL_COLOR_BUFFER_BIT); glBegin(GL_POLYGON); //Red Triangle glColor3f(1.0,0.0,0.0); glVertex2f(-0.75, -0.75); glVertex2f(-0.5, -0.5); glVertex2f(-0.25,-0.75 ); glEnd(); ect... of course there is a glFlush and a main... This code was originally written for Visual C++ and when the files are added to the proper place it works fine there. I put the files in the seeming approprate place for C++Builder..since it looked almost identical...but I get several errors: [C++ Error] gl.h(1152): E2141 Declaration syntax error [C++ Error] gl.h(1153): E2238 Multiple declaration for 'WINGDIAPI' [C++ Error] gl.h(1152): E2344 Earlier declaration of 'WINGDIAPI' and on and on it goes. What am I missing? Files used: glut.h (in the C++ Builder Include/Gl folder). glut32.lib ( in the C++ Builder Lib folder). glut32.dll ( in the winnt/system folder). .