Where are usually location of executable in Linux
usr/bin
usr/loca/bin
Where is header file for system library?
usr/include
usr/include/sys
….
cc -o test test.c -lm
What is “-lm”
usr/lib/libm.a
Will Static library file name end with?
.a
Command to combine many objects to one single static library?
ar crv libfoo.a obj1.o obj2.o
How to specify search library location in compile command?
cc -o test -L. test.c -lfoo
or
cc -o test -L/usr/openwin/lib test.c -lX11
What is shared library end with?
.so