Find the answer to your Linux question:
Results 1 to 2 of 2
When I start progrmming in c, I can invoke some system calls( such as read ,fork,exevp) without including any libraries. Is there the possiblity that the gcc complier automatically search the ...
  1. #1
    Just Joined!
    Join Date
    Jul 2007
    Posts
    6

    what are the build-in libraries of gnu libc

    When I start progrmming in c, I can invoke some system calls( such as read ,fork,exevp) without including any libraries.
    Is there the possiblity that the gcc complier automatically search the default library?

  2. #2
    Linux User
    Join Date
    Jul 2004
    Location
    Poland
    Posts
    368
    The default library is linked automatically with every C/C++ program, unless you explicitly tell the compiler not to do so. You can use ldd exe_file to find out what a libraries were linked with the executable. Hope this helps.
    "I don't know what I'm running from
    And I don't know where I'm running to
    There's something deep and strange inside of me I see"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...