I am using codeblocks as my IDE.
I have all the linker settings perfect, I have all the SDL libraries in and when I build in Debug configuration everything works fine.
I should also mention I am compiling a dll with SDL and so there is no main function.
The problem arises when I try and compile into Release configuration. I keep getting the same error no matter what I do:
ld.exe cannot find -lSDL_main.
If there is no
mainfunction, there’s no need for you to be linking SDL_main. Remove it from your build configuration.