How to include needed C library using gcc?

multiholle picture multiholle · May 16, 2011 · Viewed 68.2k times · Source

I am trying to compile the simple C example from this Tutorial on Ubuntu using gcc. What do I have to use as argument for gcc to include the needed libraries for #include <libappindicator/app-indicator.h>?

Answer

Kristofer picture Kristofer · May 16, 2011
-I<search path to include files>
-L<search path to the lib file>
-l<libname>