How can I compile an sfml project via command line on mac?

I am trying to compile an sfml project through the command line under mac osx. Currently, I canโ€™t assemble it. Any help guys?

+4
source share
2 answers

For a simple application window, they include part of the templates. I was able to compile it with the following command.

g++ -framework OpenGL -framework SFML -framework SFML-window main.cpp

I hope this helps

+5
source

You can compile only one command:

 g++ -framework sfml-window -framework sfml-graphics -framework sfml-system main.cpp -o main 
+3
source

Source: https://habr.com/ru/post/1393630/


All Articles