Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 21994

How does gcc on Linux know it is libc.so.6 that contains printf function?

$
0
0

If I do gcc hello_world.c, how does gcc/ld know it is libc.so.6 that should be linked against? Does gcc/ld go through the default shared library paths(however the linker was configured, plus some gcc additional flavors), and then scan symbol table of each .so file?


Viewing all articles
Browse latest Browse all 21994

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>