-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
  • 49,394
  • 10
  • 79
  • 128
TheGreyBearded
  • 337
  • 4
  • 14

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,457
  • 10
  • 40
  • 58