this is how I got sfml and codeblocks on windows running
downloaded codeblocks
codeblocks-13.12mingw-setup.exe
from
http://www.codeblocks.org/downloads/binaries downloaded SFML
GCC 4.7.1 TDM (SJLJ) - 32-bit
from
http://www.sfml-dev.org/download/sfml/2.3.1/ (the file is named
SFML-2.3.1-windows-gcc-4.7.1-tdm-32-bit.zip)
extract
SFML-2.3.1
from
the zip file
build a blank console project in codeblocks
and put this in your .cpp file
#include <SFML/Graphics.hpp>
then go to the codeblocks menu and select
Project / Build options ...
then choose the project name (not debug or release)
choose the tab named
Search Diriectories
then the tab named
Compiler
and set it to the location of the SFML include (mine looks like this)
D:\Programs\code_blocks_dev_lib\SFML\SFML-2.3.1\include
http://i.imgur.com/BagigTP.pngnow click the tab named
Linker
and set it to the location of the SFML lib (mine looks like this)
D:\Programs\code_blocks_dev_lib\SFML\SFML-2.3.1\lib
http://i.imgur.com/8d5yQwz.png now select the Debug version
and the tab named
Linker Settings
and add
sfml-graphics-d
sfml-window-d
sfml-system-d
http://i.imgur.com/ZhDfDcO.pngthis is not staticly linked
so you will have to copy the dlls from
D:\Programs\code_blocks_dev_lib\SFML\SFML-2.3.1\bin
into your debug folder
installing sfml and getting it running was very easy
and actually, once you extract SFML-2.3.1
you can just go to codeblocks and select an sfml project template
and when it asks for the location of sfml just give it
D:\Programs\code_blocks_dev_lib\SFML\SFML-2.3.1\
then select version 2 of sfml and it sets everything up for you
very nice