1
General / Re: Compiling SFML from terminal with g++ on Mac OS X
« on: February 25, 2015, 02:41:30 pm »
Thank you yes that was it.
Just for everyone else, if you have put the libraries in the right places then all you need to do is use -c flag when compiling as follows:
Otherwise
For all your libraries. Note is your library is called: libsfml-window.dylib then the command is: -lsfml-window
ignoring the "lib" at the front and the ".dylib" at the end. You must do this for every every library you use.
Also I THINK the command for for include folder is -I but i haven't had to use it.
Just remember when using -I it should come before <yourfile>
Note: This is for Mac OS X with the g++ compiler.
Thank you everyone,
Rainy
Just for everyone else, if you have put the libraries in the right places then all you need to do is use -c flag when compiling as follows:
g++ -c <yourfile>
Otherwise
g++ <yourfile> -L <path to library folder> -l<libraryname>
For all your libraries. Note is your library is called: libsfml-window.dylib then the command is: -lsfml-window
ignoring the "lib" at the front and the ".dylib" at the end. You must do this for every every library you use.
Also I THINK the command for for include folder is -I but i haven't had to use it.
Just remember when using -I it should come before <yourfile>
Note: This is for Mac OS X with the g++ compiler.
Thank you everyone,
Rainy