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