D
Davor
Hi!
I have a few questions about compilation of C programs.
What does the compiler do after I send him preprocessed file and what
happens from then on? What does the linker do ? Do the libraries contain
C-code, or are they in a binray form?
For exapmle, when I'm compiling a simple program on linux, and I use
sqrt, can I only write #include <math.h>, or do I have to link against
math library too, gcc myprog.c -o myprog -lm ? I'm not quite clear with
this, so any comments and answers are welcome, tutorials and HOW-TOs, or
anything like that is welcome.
Thanks in advance
Davor
I have a few questions about compilation of C programs.
What does the compiler do after I send him preprocessed file and what
happens from then on? What does the linker do ? Do the libraries contain
C-code, or are they in a binray form?
For exapmle, when I'm compiling a simple program on linux, and I use
sqrt, can I only write #include <math.h>, or do I have to link against
math library too, gcc myprog.c -o myprog -lm ? I'm not quite clear with
this, so any comments and answers are welcome, tutorials and HOW-TOs, or
anything like that is welcome.
Thanks in advance
Davor