How can I install libraries in atom?


#1

I want to install the SDL 2.0 library in atom but I coldn’t figure out how.
Any help is much appreciated :slight_smile: thank you!


#2

Atom is not an IDE and does not have native support for libraries from any language, so there is no installing them. You just have to include them in a folder somewhere and point to them in your code.


#3

i downloaded SDL externally but how do i use it. when i simply put #include<SDL.h>. i get error message saying file not found.


#4

That’s not an issue with Atom. Your C compiler determines what directories are searched for library and include files. You may need to add a flag to your compile command: -I <directory containing SDL.h>