   What's Wrong With SDL?
  Ok, so today I tried to use SDL for the first time, and when I tried to compile and run it in CodeBlocks, it returned "ld.exe    cannot find -1SDLmain". Can anyone help me get it to work who has had this problem?   
  I think -1SDLmain should be -lSDLmain. The first character is a lower case L not the numeral 1.   ;  No clue, I hate all the computer stuff... I just program lol. Anyhow Lazy Foo has a great Tut on how to set up SDL for specific compiler's. I have never looked at the Code Block's one but the others worked just great for me. Check it out: http://lazyfooproductions.com/SDL_tutorials/lesson01/windows/codeblocks/index.phpGood luck.   ;  Thanks SiCrane, I van never tell about stuff like that. It's funny, I was using the Lazy Foo tuts when it didn't work. Anybody had this problem?   ;  Hey everybody, I just tried to do the tutorial for SDL and Dev-Cpp and it didn't work either. What's up with all these IDEs not working with SDL for me?   ;  Err... what goes wrong?   ;Quote:Original post by FullThrottleHey everybody, I just tried to do the tutorial for SDL and Dev-Cpp and it didn't work either. What's up with all these IDEs not working with SDL for me?What is not working for you? It works fine for me, you replaced the 1 with l right?   ;  Dev C++ works fine with SDL. It is a lowercase 'L' for the linker, as in -l(inker)SDLmain or -lSDLmain.Also make sure you have it installed correctly, what with the .dll in the SYSTEM32 file for compiler recognition.Quote:From Lazyfoo's awesome tutorials:Now take the SDL.dll from the archive (it should be inside the bin subfolder), and extract it to C:\WINDOWS\SYSTEM32.This is so whenever you make an SDL app, the program will be able to find SDL.dll even if SDL.dll is not in the same directory.I had this problem at first, and it should be stated clearly, but all in all it's not such a major problem.What errors are you getting?   ;  Yes, I replaced the 1 with l, but everytime I compile and run, I get the message "cannot find -lSDLmain". That's all. How'd you get it to work?I also put SDL.dll in C:\WINDOWS\SYSTEM32 before I even tried to compile.   ;  You will need libSDLmain.a, and libSDL.a linked in that order, also if your using mingW you will need to add libmingw.a after SDLmain, and SDL. Be sure all of these libs are in a directory your compiler can find. IE <path_to_mingw>/lib.   