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 ...
- 07-20-2007 #1Just 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?
- 07-28-2007 #2Linux 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"


Reply With Quote