@NexusI removed everything and did it once again from the begining.
I downloaded and installed codeblocks-13.12mingw-setup.exe from:
http://www.codeblocks.org/downloads/binariesOn this site:
http://www.sfml-dev.org/tutorials/2.1/start-cb.phpI read:
If you're using the version of MinGW shipped with Code::Blocks, you probably have a SJLJ version.
I do.
I downloaded SFML 2.1 Windows GCC 4.7 TDM (SJLJ) - 32 bits from:
http://www.sfml-dev.org/download/sfml/2.1/I extracted the SFML-2.1 folder in Code Blocks folder.
I executed Code Blocks.
I created new Project - Test.
Project->Build options...
Test:
Compiler settings:
#defines:
SFML_STATIC
Search drectories:
Compiler - Add:
C:\Program Files\CodeBlocks\SFML-2.1\include
OK
Linker - Add:
C:\Program Files\CodeBlocks\SFML-2.1\lib
OK
Debug: Linker Settings - Add:
libsfml-graphics-s-d
libsfml-window-s-d
libsfml-system-s-d
libsfml-audio-s-d
libsfml-network-s-d
OK
Release: Linker Settings - Add:
libsfml-graphics-s
libsfml-window-s
libsfml-system-s
libsfml-audio-s
libsfml-network-s
OK
I put the code:
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
sf::CircleShape shape(100.f);
shape.setFillColor(sf::Color::Green);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.draw(shape);
window.display();
}
return 0;
}
Ok It worked.
The problem was wrong package. Previously I downloaded GCC 4.7 MinGW (DW2) - 32 bits.
Thank you for patience.
@Syntactic FructoseI did. However very good idea. I also recommend it to others.
Thank you all.