im using windows 7 64bit along with codeblocks and mingw and im trying to use non standard c++ libaries such as SDL , allegro and sfml but when i link them and try to compile the examples some work and some dont i wonder what i did wrong ? I set the search directory tab as such the compiler to the include folder and the linker to the lib folder and then added the .lib .o ... As linkers

Visit SFML, SDL or Allegro website. they have so many guides
SFML is best choice for C++ programmers.

good luck

Sarkund has a good answer, but let me add to that.

Sometimes there are external dependency issues like audio codecs that aren't immediately obvious. I believe SFML has some.
Keep an eye out for those.