-5

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.

genpfault
  • 51,148
  • 11
  • 85
  • 139
TheGreyBearded
  • 357
  • 6
  • 15

1 Answers1

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.

Community
  • 1
  • 1
J-Alex
  • 6,881
  • 10
  • 46
  • 64