I have a query in relation to this website:
http://en.wikibooks.org/wiki/OpenGL_Programming#The_basics_arc
From an example page i found a link to the source code for the examples and decided to download it. I was sure that if ever anything should just work, it would be with fully working examples which had been set up by an expert that I could just open and run.
FYI, the download link page is here:
https://gitorious.org/wikibooks-opengl/modern-tutorials/source/90bf72991caf34ea6cdbed044a9616b7bbdf2d0f:
Unfortunately (as expected), they did not work, none of them, from the simplest code to the more complex stuff, compile errors everywhere (usually starting with "___IMP___" for some reason), Here's the build log for tut01_intro\triangle.cpp:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
...\tut01_intro\triangle.o:triangle.cpp:(.text+0x1c): undefined reference to `_imp____glutInitWithExit@12'
...\tut01_intro\triangle.o:triangle.cpp:(.text+0x3e): undefined reference to `_imp____glutCreateWindowWithExit@8'
...\tut01_intro\triangle.o:triangle.cpp:(.text+0x60): undefined reference to `_imp____glutCreateMenuWithExit@8'
...\tut01_intro\triangle.o:triangle.cpp:(.text+0xb1): undefined reference to `_imp____glewCreateShader'
...\tut01_intro\triangle.o:triangle.cpp:(.text+0xd5): undefined reference to `_imp____glewShaderSource'
...\tut01_intro\triangle.o:triangle.cpp:(.text+0xfe): undefined reference to `_imp____glewCompileShader'
...\tut01_intro\triangle.o:triangle.cpp:(.text+0x110): undefined reference to `_imp____glewGetShaderiv'
...\tut01_intro\triangle.o:triangle.cpp:(.text+0x16a): undefined reference to `_imp____glewCreateShader'
...\tut01_intro\triangle.o:triangle.cpp:(.text+0x18e): undefined reference to `_imp____glewShaderSource'
...\tut01_intro\triangle.o:triangle.cpp:(.text+0x1b7): undefined reference to `_imp____glewCompileShader'
...\tut01_intro\triangle.o:triangle.cpp:(.text+0x1c9): undefined reference to `_imp____glewGetShaderiv'
...\tut01_intro\triangle.o:triangle.cpp:(.text+0x223): undefined reference to `_imp____glewCreateProgram'
...\tut01_intro\triangle.o:triangle.cpp:(.text+0x238): undefined reference to `_imp____glewAttachShader'
...\tut01_intro\triangle.o:triangle.cpp:(.text+0x253): undefined reference to `_imp____glewAttachShader'
...\tut01_intro\triangle.o:triangle.cpp:(.text+0x26e): undefined reference to `_imp____glewLinkProgram'
...\tut01_intro\triangle.o:triangle.cpp:(.text+0x282): undefined reference to `_imp____glewGetProgramiv'
...\tut01_intro\triangle.o:triangle.cpp:(.text+0x2e2): undefined reference to `_imp____glewGetAttribLocation'
...\tut01_intro\triangle.o:triangle.cpp:(.text+0x3d0): undefined reference to `glClearColor@16'
...\tut01_intro\triangle.o:triangle.cpp:(.text+0x3df): undefined reference to `glClear@4'
...\tut01_intro\triangle.o:triangle.cpp:(.text+0x3e7): undefined reference to `_imp____glewUseProgram'
...\tut01_intro\triangle.o:triangle.cpp:(.text+0x3fb): undefined reference to `_imp____glewEnableVertexAttribArray'
...\tut01_intro\triangle.o:triangle.cpp:(.text+0x424): undefined reference to `_imp____glewVertexAttribPointer'
...\tut01_intro\triangle.o:triangle.cpp:(.text+0x476): undefined reference to `glDrawArrays@12'
...\tut01_intro\triangle.o:triangle.cpp:(.text+0x47e): undefined reference to `_imp____glewDisableVertexAttribArray'
...\tut01_intro\triangle.o:triangle.cpp:(.text+0x492): undefined reference to `_imp__glutSwapBuffers@0'
...\tut01_intro\triangle.o:triangle.cpp:(.text+0x4c9): undefined reference to `_imp____glewDeleteProgram'
...\tut01_intro\triangle.o:triangle.cpp:(.text+0x519): undefined reference to `_imp__glutInitContextVersion@8'
...\tut01_intro\triangle.o:triangle.cpp:(.text+0x52a): undefined reference to `_imp__glutInitDisplayMode@4'
...\tut01_intro\triangle.o:triangle.cpp:(.text+0x543): undefined reference to `_imp__glutInitWindowSize@8'
...\tut01_intro\triangle.o:triangle.cpp:(.text+0x55c): undefined reference to `_imp__glewInit@0'
...\tut01_intro\triangle.o:triangle.cpp:(.text+0x572): undefined reference to `_imp__glewGetErrorString@4'
...\tut01_intro\triangle.o:triangle.cpp:(.text+0x5b4): undefined reference to `_imp__glutDisplayFunc@4'
...\tut01_intro\triangle.o:triangle.cpp:(.text+0x5be): undefined reference to `_imp__glutMainLoop@0'
|
glut (freeglut is installed), glew is installed, GLM is installed now as well. What else needs to be installed?
For the record I have not edited the code at all. I literally just opened codeblocks, opened the .cpp file and ran it. No adjustments.
Can anyone confirm that any of the code from the above site works at all? I'm starting to think its actually not me now...
If anyone can make any of this code run, please advise what else is needed to be installed in codeblocks...