I have been trying to make it work my whole day and I just can make it work.Here is the build log.
-------------- Clean: Debug in sfml (compiler: GNU GCC Compiler)---------------
Cleaned "sfml - Debug"
-------------- Build: Debug in sfml (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -Wall -fexceptions -DSFML_STATIC -g -IC:\SFML-2.2\include -c C:\Users\visu\Desktop\c++\sfml\main.cpp -o obj\Debug\main.o
mingw32-g++.exe -LC:\SFML-2.2\lib -o bin\Debug\sfml.exe obj\Debug\main.o -lsfml-graphics-d -lsfml-window-d -lsfml-system-d
obj\Debug\main.o: In function `main':
C:/Users/visu/Desktop/c++/sfml/main.cpp:5: undefined reference to `sf::String::String(char const*, std::locale const&)'
C:/Users/visu/Desktop/c++/sfml/main.cpp:5: undefined reference to `sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)'
C:/Users/visu/Desktop/c++/sfml/main.cpp:5: undefined reference to `sf::RenderWindow::RenderWindow(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&)'
C:/Users/visu/Desktop/c++/sfml/main.cpp:6: undefined reference to `sf::CircleShape::CircleShape(float, unsigned int)'
C:/Users/visu/Desktop/c++/sfml/main.cpp:7: undefined reference to `sf::Color::Green'
C:/Users/visu/Desktop/c++/sfml/main.cpp:7: undefined reference to `sf::Shape::setFillColor(sf::Color const&)'
C:/Users/visu/Desktop/c++/sfml/main.cpp:15: undefined reference to `sf::Window::close()'
C:/Users/visu/Desktop/c++/sfml/main.cpp:12: undefined reference to `sf::Window::pollEvent(sf::Event&)'
C:/Users/visu/Desktop/c++/sfml/main.cpp:18: undefined reference to `sf::Color::Color(unsigned char, unsigned char, unsigned char, unsigned char)'
C:/Users/visu/Desktop/c++/sfml/main.cpp:18: undefined reference to `sf::RenderTarget::clear(sf::Color const&)'
C:/Users/visu/Desktop/c++/sfml/main.cpp:19: undefined reference to `sf::RenderStates::Default'
C:/Users/visu/Desktop/c++/sfml/main.cpp:19: undefined reference to `sf::RenderTarget::draw(sf::Drawable const&, sf::RenderStates const&)'
C:/Users/visu/Desktop/c++/sfml/main.cpp:20: undefined reference to `sf::Window::display()'
C:/Users/visu/Desktop/c++/sfml/main.cpp:9: undefined reference to `sf::Window::isOpen() const'
C:/Users/visu/Desktop/c++/sfml/main.cpp:23: undefined reference to `sf::RenderWindow::~RenderWindow()'
C:/Users/visu/Desktop/c++/sfml/main.cpp:23: undefined reference to `sf::RenderWindow::~RenderWindow()'
C:/Users/visu/Desktop/c++/sfml/main.cpp:23: undefined reference to `sf::RenderWindow::~RenderWindow()'
obj\Debug\main.o: In function `ZN2sf11CircleShapeD1Ev':
C:/SFML-2.2/include/SFML/Graphics/CircleShape.hpp:41: undefined reference to `vtable for sf::CircleShape'
C:/SFML-2.2/include/SFML/Graphics/CircleShape.hpp:41: undefined reference to `vtable for sf::CircleShape'
C:/SFML-2.2/include/SFML/Graphics/CircleShape.hpp:41: undefined reference to `sf::Shape::~Shape()'
pls help.