standard libraries are linked statically or dynamically?

Philip Herron redbrain@gcc.gnu.org
Sat Dec 25 10:41:00 GMT 2010


On 25 December 2010 09:59, ali hagigat <hagigatali@gmail.com> wrote:
> When we use some functions like printf in Linux C programs, libc.a is
> linked with our program. Is it linked dynamically or statically?
> Regards
>

You could probably google that but its static i am fairly sure you
could always do gcc -v to see whats going on and try -nostdinc i think
the option is to not do the standard includes.

Hope this help! Now back to Christmas ;)

--Phil



More information about the Gcc-help mailing list