4

I installed libsoil1. Unfortunately, it's impossible to use without the command line arguments. What do I need to use it with g++?

Also, is the include file #include < SOIL.h >, or is it something else?

I'm using Ubuntu.

DanielLC
  • 5,801
  • 5
  • 18
  • 16

1 Answers1

4

You need the development files. On Ubuntu you install them using

sudo apt-get install libsoil-dev

The general rule is, that for every library package, there's a corresponding development files packages of the same name, suffixed with -dev.

You need to #include the soil headers so that the compiler knows which symbols are defined and can be used by your code. The linker itself needs to be told to actually link the libraries used by the -l… argument, in the case of SOIL -lSOIL.

datenwolf
  • 159,371
  • 13
  • 185
  • 298