1
General / Re: Using SFML without any IDE
« on: May 23, 2014, 08:38:41 pm »
Linking statically didn't work :
g++ SFML.cpp -o test -I D:\SFML\include -L D:\SFML\lib -lsfml-graphics-s -lsfml-window-s -lsfml-system-s
But dynamically worked ! (although it needed: "-I D:\SFML\include" as well and wouldn't work without it) :
g++ SFML.cpp -o test -I D:\SFML\include -L D:\SFML\lib -lsfml-graphics -lsfml-window -lsfml-system
It required these 2 files from MinGW bin folder:
libgcc_s_dw2-1.dll
libstdc++-6.dll
as well as dll files from SFML\bin folder
g++ SFML.cpp -o test -I D:\SFML\include -L D:\SFML\lib -lsfml-graphics-s -lsfml-window-s -lsfml-system-s
But dynamically worked ! (although it needed: "-I D:\SFML\include" as well and wouldn't work without it) :
g++ SFML.cpp -o test -I D:\SFML\include -L D:\SFML\lib -lsfml-graphics -lsfml-window -lsfml-system
It required these 2 files from MinGW bin folder:
libgcc_s_dw2-1.dll
libstdc++-6.dll
as well as dll files from SFML\bin folder