This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: standard libraries are linked statically or dynamically?
- From: Philip Herron <redbrain at gcc dot gnu dot org>
- To: ali hagigat <hagigatali at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sat, 25 Dec 2010 10:41:29 +0000
- Subject: Re: standard libraries are linked statically or dynamically?
- References: <AANLkTim21civS=h7ztpxFdA12-Z_Cknsn9rsCpbJv0-O@mail.gmail.com>
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