obj\Debug\main.o||In function `Z7init_GLv':|
C:\Documents and Settings\Owner\Desktop\Programming\C++\WorkSpace\OpenGL Graphics\SDL_Work.h|141|undefined reference to `glClearColor@16'|
C:\Documents and Settings\Owner\Desktop\Programming\C++\WorkSpace\OpenGL Graphics\SDL_Work.h|143|undefined reference to `glMatrixMode@4'|
C:\Documents and Settings\Owner\Desktop\Programming\C++\WorkSpace\OpenGL Graphics\SDL_Work.h|144|undefined reference to `glLoadIdentity@0'|
C:\Documents and Settings\Owner\Desktop\Programming\C++\WorkSpace\OpenGL Graphics\SDL_Work.h|145|undefined reference to `glOrtho@48'|
C:\Documents and Settings\Owner\Desktop\Programming\C++\WorkSpace\OpenGL Graphics\SDL_Work.h|147|undefined reference to `glMatrixMode@4'|
C:\Documents and Settings\Owner\Desktop\Programming\C++\WorkSpace\OpenGL Graphics\SDL_Work.h|148|undefined reference to `glLoadIdentity@0'|
C:\Documents and Settings\Owner\Desktop\Programming\C++\WorkSpace\OpenGL Graphics\SDL_Work.h|150|undefined reference to `glGetError@0'|
C:\Documents and Settings\Owner\Desktop\Programming\C++\WorkSpace\OpenGL Graphics\SDL_Work.h|152|undefined reference to `glGetError@0'|
||=== Build finished: 8 errors, 0 warnings ===|
So, what do I do? I searched and found a ton of threads on this, but none really helped me.You are missing to link against opengl32 at least. I suggest you either:
<Linker>
<Add library="GL" />
</Linker>
You should add to your *.cbp file this:NO NEVER EDIT THE .CBP FILE DIRECTLY*)