Sign in to follow this  

NEHE Your First Polygon - help

This topic is 3463 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I use NVIDIA FX5200 an Debian Linux when i use a normal user to compile i have : gcc -o mygl mygl.c -I /usr/libs/ -L /usr/libs/ -lglut -lGL -lGLU -lX11 -lXmu -lXi -lm mygl.c: In function ‘keyPressed’: mygl.c:94: warning: incompatible implicit declaration of built-in function ‘exit’ and output is : ./mygl NVIDIA: could not open the device file /dev/nvidiactl (Permission denied). NVIDIA: Direct rendering failed; attempting indirect rendering. freeglut (./mygl): Unable to create direct context rendering for window 'Jeff Molofee's GL Code Tutorial ... NeHe '99' This may hurt performance. when i use root: gcc -o mygl mygl.c -I /usr/libs/ -L /usr/libs/ -lglut -lGL -lGLU -lX11 -lXmu -lXi -lm mygl.c: In function ‘keyPressed’: mygl.c:94: warning: incompatible implicit declaration of built-in function ‘exit’ and output doesn't have errors. How make to normal user to run without errors? What is wrong with "warning: incompatible implicit declaration of built-in function ‘exit’"? I use : #include <GL/glut.h> // Header File For The GLUT Library #include <GL/gl.h> // Header File For The OpenGL32 Library #include <GL/glu.h> // Header File For The GLu32 Library //#include <unistd.h> // Header File For sleeping. Thank you !

Share this post


Link to post
Share on other sites

This topic is 3463 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this