create a dev-c++ project and add the source code file
to the project. In the project options add -lglu32
-lglaux -lopengl32 (or -lopengl, forgot which one) and
then recompile project....
_______________________________________________
Message: 4Date: Tue, 13 Nov 2001 15:11:23 +0100
Organization: http://freemail.web.de/From: "Max
Palitza" <Max...@we...>
To: dev...@li...:
[Dev-C++] Problem with OpenGL
Hi everybody!
I've got a problem with compiling OpenGL code written
in C. When I
want to compile this code#include <windows.h>
#include <gl\gl.h>
#include <gl\glu.h> #include <gl\glaux.h>int
main(int argc, char** argv){
auxInitDisplayMode (AUX_SINGLE | AUX_RGBA);
auxInitPosition (0, 0, 500, 500); auxInitWindow
(argv[0]);
glClearColor (0.0, 0.0, 0.0, 0.0);
glClear(GL_COLOR_BUFFER_BIT);
glColor3f(1.0, 1.0, 1.0);
glMatrixMode(GL_PROJECTION);
glLoadIdentity(); glOrtho(-1.0, 1.0, -1.0, 1.0,
-1.0, 1.0);
glBegin(GL_POLYGON); glVertex2f(-0.5,
-0.5);
glVertex2f(-0.5, 0.5);
glVertex2f(0.5, 0.5);
glVertex2f(0.5, -0.5); glEnd();
glFlush(); return 0;}
it reports that <i>all</i> funcs used are unknown! I
am quite sure that
there's a problem with the .h files cause in VC++ I
got it compiling.
Could someone please tell me what to do in order to
get this problem solved?
Thanks,Max___
=====
Julio
__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com
|