Thread: C standard library

  1. #1

    C standard library

    Does the C standard library funcions load dynamically...or do they get linked at compilation time...(statically linked).

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    All header files that are included at that top of a program are input at compile time. #include is essentially saying: 'here is the location of some code, replace this line with the code in the file'. Just like #define, #include replaces <stdlib.h> with all of the code in stdlib and compiles it into your program.

    So the simple answer would be: statically linked, since the libraries are a physical part of the executable when compilation is finished.

    Last edited by Prelude; 12-08-2001 at 12:11 PM.
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Writing your own C++ Standard Library implementation...
    By SlyMaelstrom in forum A Brief History of
    Replies: 20
    Last Post: 10-02-2006, 07:54 PM
  2. Standard Library file io under windows
    By willkoh in forum Windows Programming
    Replies: 1
    Last Post: 09-24-2005, 09:02 AM
  3. Standard C library Question
    By invisibleghost in forum C++ Programming
    Replies: 3
    Last Post: 10-24-2004, 01:40 PM
  4. Replies: 3
    Last Post: 09-04-2002, 09:01 PM
  5. C Standard Library
    By JoshG in forum C Programming
    Replies: 2
    Last Post: 07-17-2002, 09:09 AM