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 #incl
#incl
Use the -l command line option. You can specify the library search path with the -L option. E.g:
-l
-L
gcc -o myprogram -lfoo -L/home/me/foo/lib myprogram.c
This will link myprogram with the static library libfoo.a in the folder /home/me/foo/lib.
myprogram
libfoo.a
/home/me/foo/lib