106
General / How to link SFML statically (GCC/MinGW)?
« on: August 13, 2010, 03:48:56 pm »Quote from: "Dig"
the static libraries have -s at the end of their name,
so maybe:Code: [Select]g++ main.cpp -o test.exe -lsfml-window-s -lsfml-system-s
would work?
That doesn't work. Compiling a little program using sf::Clock gives me the following errors:
Code: [Select]
/mingw/lib/libsfml-system-s.a(Clock.o):Clock.cpp:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
And some more undefined references.
Btw, where is it documented / "told" me about the usage with "-s", and "-d" after lib name? Does d mean "debug"?