SFML on Atom


Hi, Does anyone know how to get sfml to work on atom?


You might need to provide some more information about what SFML is and what it would look like for it to work “on” Atom.


Hi, so sfml is a library to make games on. I am able to link the libraries to run but this is the error i get in the command prompt ill post a screen shot.



I’m not sure what this has to do with Atom.



Atom does not have any capability to compile code. Therefore, you must be using a package, but you’re not telling me which package you’re using. Additionally, since you aren’t able to get SFML to work via the command line, you should first figure out how to make that work by asking in a forum frequented by SFML users. Once you know the procedure to make it work via the command line, then people here can tell you how to use one or more of the packages available for Atom to do the same process through the editor.


I figured a way to solve this on Ubuntu Linux, commenting here for posterity:

  • Install the gpp-compiler package on Atom
  • Install SFML: sudo apt-get install libsfml-dev
  • On Atom: Installed Packages > Gpp-compiler > Settings > C++ Compiler Options > add the following:
    -lsfml-graphics -lsfml-window -lsfml-system
    (plus other libraries if needed)

That’s it!