Hey guys, I've been learning SDL for quite some time off of the Lazyfoo tutorials.
I wish to now go onto learn OpenGL and program a game using SDL as the environment etc...
I was running through this tutorial:
http://lazyfoo.net/SDL_tutorials/lesson36/index.phpand attempted to compile it, I received one error and the program failed to compile.
The error I received:
undefined reference to `__dyn_tls_init_callback'
Whilst I do realize this is more than likely a problem with the linker, I have no idea what I am doing wrong and wonder if anybody could offer me any advice that would enable me to compile OpenGL with SDL.
These are my "other linker settings": -lmingw32 -lSDLmain -lSDL -lglu32 -lopengl32 which the readme with the source of the tutorial tells me to use.
I do definitely have these present on my system though and I would have a different error if I did not have these.
My "Search Directories" point to MinGW/lib and MinGW/include correctly.
Instead of using the <SDL_opengl> (or whatever the library is called) I included these instead:
#include <gl/gl.h>
#include <gl/glu.h>
which I have read and been told is fine to use for me as I am compiling this program on Windows XP.
My version of CodeBlocks is 8.02 if that is required.
I have been tinkering with the IDE and trying to figure out what is wrong for the past day and I'm really at a brick wall here so any help at all is wonderful.
~ Thanks, Aeon