ali hagigat <hagigatali@gmail.com> writes: > When i write: > gcc -lc .... > I expect libc.a is linked with my program. Does GNU ld selects some > object files from libc.a and link them with my program? or the whole > archive will be linked? Try it and see what happens. Note that -lc can link against libc.so as well as libc.a. Ian