User forums > Help
How do you fully install opengl???
Jenna:
Right clicking should do the trick (either in the log itself or on the tab, depending on the OS).
But in any case the "Build log" is more meaningful.
crinkle:
Ok heres the build log:
--- Code: ----------------- Build: Debug in GL_PROJ (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -o bin\Debug\GL_PROJ.exe obj\Debug\main.o -lopengl32 -lglu32 -lgdi32 "..\..\..\..\..\..\Program Files (x86)\CodeBlocks\MinGW\lib\glut32.lib"
obj\Debug\main.o: In function `glutInit_ATEXIT_HACK':
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../../include/glut.h:486: undefined reference to `__glutInitWithExit'
obj\Debug\main.o: In function `glutCreateWindow_ATEXIT_HACK':
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../../include/glut.h:503: undefined reference to `__glutCreateWindowWithExit'
obj\Debug\main.o: In function `glutCreateMenu_ATEXIT_HACK':
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../../include/glut.h:549: undefined reference to `__glutCreateMenuWithExit'
obj\Debug\main.o: In function `main':
C:/Users/Beasty/Desktop/CODE BLOCKS/Tutorials/GL_PROJ/main.c:31: undefined reference to `glutInitContextVersion'
C:/Users/Beasty/Desktop/CODE BLOCKS/Tutorials/GL_PROJ/main.c:32: undefined reference to `glutInitDisplayMode'
C:/Users/Beasty/Desktop/CODE BLOCKS/Tutorials/GL_PROJ/main.c:33: undefined reference to `glutInitWindowSize'
C:/Users/Beasty/Desktop/CODE BLOCKS/Tutorials/GL_PROJ/main.c:37: undefined reference to `_imp__glewInit@0'
C:/Users/Beasty/Desktop/CODE BLOCKS/Tutorials/GL_PROJ/main.c:40: undefined reference to `_imp__glewGetErrorString@4'
C:/Users/Beasty/Desktop/CODE BLOCKS/Tutorials/GL_PROJ/main.c:49: undefined reference to `glutDisplayFunc'
C:/Users/Beasty/Desktop/CODE BLOCKS/Tutorials/GL_PROJ/main.c:50: undefined reference to `glutMainLoop'
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 0 second(s))
10 error(s), 0 warning(s) (0 minute(s), 0 second(s))
--- End code ---
oBFusCATed:
You need to link to glut and glew libraries!
crinkle:
but it looks to me like these are GLUT related errors and i HAVE linked that:
Is there a codeblock download with opengl+glew+glut+everyotheropenglthing already installed and working? and if not can someone make one because this isnt making any sense!
oBFusCATed:
You cannot have full path there, just the name of the file (strip the extension and lib prefix). The path must go in search directories -> linker!
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version