How do I import libraries that I can include with #include <> in C++. Specifically, I am trying to import the SDL library, I am using Atom, and my operating system is ubuntu 16.04.
Asked
Active
Viewed 1,872 times
-5
-
2You simply should install these libraries on your system, and adapt the makefiles. The text-editor doesn't have to do anything with it. – πάντα ῥεῖ Jun 05 '16 at 17:54
1 Answers
1
There is default path where compiler searches libraries.
What are the GCC default include directories?
If you are using gcc/g++:
gcc -xc++ -E -v -
Or you have to specify path to the library:
#include "../folder1/header1.h"
#include "../folder2/header2.h"
As already mentioned, you should have this library on your local system.