I am resending this message because, I subscribed to the yahoogroup mentioned
in this website.

Hi I am using RHEL AS 3. GCC version 3.2.3 on a 32 bit intel processor. I
have a question regarding the C library mainly libc.

I have been assuming that libc.a or libc.so will be present in usr/lib. So
whenever i write a makefile, i would set linker option -L to /usr/lib and
-lc and create executables. 

But sometime back i discovered that even though i set this path, i do not
think this this libc is being linked with my executable. When i gave ldd
executable-name it shows /lib/libc.so.6. When i went to /lib, i found that
its a link to libc.so.some version(i forgot the version number). 

So now i got a doubt as to what is the difference between the libc.so in
/usr/lib and the libc.so.6 present in /lib. Why are there so many libc.so's.
When i gave strace along with the gcc command to build executable, i saw
that strace opened all the libc copies. But i did not understand much out of
its output. Please clarify this.

Thanks
Sathya

-- 
View this message in context: 
http://www.nabble.com/Question-on-C-libraries-%28mainly-libc%29-tf4429995.html#a12637766
Sent from the C-prog mailing list archive at Nabble.com.

Reply via email to