Ok, so. I just downloaded codeblocks, and I installed SDL manually. Now that I put the commands to the linker (-lmingw32 -lSDLmain -lSDL) and try to compile, it gives me this message:
F:\Ohjelmat\CodeBlocks\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\libmingw32.a(main.o):main.c:(.text+0x104)||undefined reference to `_WinMain@16'|
I dont understand what did I do wrong...