I am working on Windows XP, I have Portable version of Eclipse Galileo, but I lack that I decided I took all the steps to add it using this and now I am trying to compile this code
#include "GL / glut.h" #include " GL / gl.h "#include" GL / Glue H "//////////////////////////////////// /////// //////////////// ResellerScene (zero) {/ var Value Clearing clear window with color Glileyr (GL_COLOR_BUFFER_BIT); // flush drawing commands glFlush (); } ///////////////////////////////////////////////// ////////// Setup State Zero SetupRC (zero) {glClearColor (0.0f, 0.0f, 1.0f, 1.0f) Setup; } ///////////////////////////////////////////////// ////////// Main event entry point zero main (int argi, four * argv []) {glutInit (& argc, argv); GlutInitDisplayMode (GLUT_SINGLE | GLUT_RGB); GlutInitWindowSize (800600); GlutCreateWindow ("simple"); GlutDisplayFunc (RenderScene); SetupRC (); GlutMainLoop (); }
and I have these errors
simple.o: `renderer 'in function: c: / documents and settings / administrator / desktop / workspace / Open / Debug /../ Simple: c: 16: Undefined reference to `_imp__glClear 'C: / Documents and Settings / Admin / Desktop / Workspace / Open / Debug /... Simple.c c: 20:` _imp__glFlush Undefined reference 'simple': 'SetupRC' in function: C: / Documents and Settings / Admin / Desktop / Workspace / Open / D C / ... / Simple: 27: Undefined Reference for `_imp__glClearColor 'is simple. O: Function' main ': C: / Documents and Settings / Admin / Desktop / Workspace / Open / Debug /../ Simple. C: 34: Undefined reference for `glutInit 'C: / Document and Settings / Administrator / Desktop / Workspace / Open / Debug / ../ Simple C: 35: Undefined Reference for` glutInitDisplayMode' C: / Documents and Settings / Administrator / Desktop / Workspace / Open / Debug /../ Simple: c: 36: 'glutInitWindowSize' Undefined Reference for Content: / Documents and Settings / Administrator / Desktop / Workspace / Open / Debug / Simple ... 37: Undefined Reference for `GlutCreateWindow 'C: / Documents and Settings / Admin / Desktop / Workspace / Open / Debug /../sample.c: 38: Undefined reference for `glutDisplayFunc 'C: / Documents and Settings / Administrator / Desktop / Workspace /open/Debug/../Simple.c:42: For' glutMainLoop ' Undefined Reference Collection 2: The Place of the LD Back 1 Exit
Please someone can help me, thanks in advance
If the memory works, OpenGL itself will be openglows 32.Lib. If it is reasonably established to begin, the IDE will probably already know the location for this library (i.e., it is a normal part of Windows, and the library will be with other normal windows libraries). The glu
function is in glu32.lib, which should be in one place.
Glut will usually be in a file called glut32.lib, assuming that you install glut in the root directory of your C drive, it is usually "C: \ glut-3.7 \ lib \ glut" Will happen.
Comments
Post a Comment