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>
?
The -l option tells gcc to link in the specified library.
The standard system libraries are usually found in the directories '/usr/lib' and '/lib'. For example, the C math library is typically stored in the file '/usr/lib/libm.
If you need a Standard compliant library, then you need to find one, as GCC does not provide one.
-I<search path to include files> -L<search path to the lib file> -l<libname>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With