LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Statically linking to libraries (https://www.linuxquestions.org/questions/linux-newbie-8/statically-linking-to-libraries-738094/)

lazylogik 07-06-2009 11:34 AM

Statically linking to libraries
 
Hello,

I am new to linux development and am currently developing a very simple program using gcc. I have to specify which packages output binary will need to user. User may use the program in different versions of linux.

When i run "ldd" to output binary, i see that my program is dependent on some libraries. Out of this most of them are part of glibc package (e.g. libm, libnsl). ldd gives "libcwait.so" as dependency.

Any one knows which package is libcwait.so part of? What package should i tell user to install to make sure libcwait.so is available on system.

Apart from this, is there any way to link statically to libraries which are part of glibc and libcwait? Is it recommended considering that user is going to run this on different versions of linux.

/LazyLogik

amani 07-06-2009 11:43 AM

It figures in oracle installs

http://www.pythian.com/news/papers/install32bit.php


All times are GMT -5. The time now is 03:36 PM.