I downloaded SFML 2 precompiled from sfml coder (the mingw one), I've copied the stuff in the include folder to my path, but what do I do to statically link sfml? From guesswork, I have a makefile that looks like this:
all: sfml_testing.o
g++ -o sfml_testing.exe sfml_testing.o -l libsfml-graphics-s.a -l libsfml-window-s.a -l libsfml-system-s.a
sfml_testing.o:
g++ -c sfml_testing.cpp
This provides this error message:
mingw32-make -k
g++ -o sfml_testing.exe sfml_testing.o -l libsfml-graphics-s.a -l libsfml-window-s.a -l libsfml-system-s.a
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe: cannot find -llibsfml-graphics-s.a
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe: cannot find -llibsfml-window-s.a
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe: cannot find -llibsfml-system-s.a
collect2: ld returned 1 exit status
mingw32-make: *** [all] Error 1
I gather that I am either not naming the libraries correctly or not putting them in the right place, probably both.
So what exactly am I doing wrong?
by the way, my cpp file is this:
#include <SFML/Window.hpp>
#include <iostream>
int main ()
{
sf::Window App (sf::VideoMode (800, 600, 32), "SFML_Testing");
int x;
std::cin >> x;
return 0;
}