LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-06-2009, 12:34 PM   #1
lazylogik
LQ Newbie
 
Registered: Jul 2009
Posts: 1

Rep: Reputation: 0
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
 
Old 07-06-2009, 12:43 PM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
It figures in oracle installs

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linking libraries. Gamma_User Linux - Newbie 1 01-19-2009 06:24 PM
[SOLVED] How to build a shared object from other libraries (linking statically)? eantoranz Programming 4 10-26-2007 01:19 PM
implication of statically linking to libstdc++ zero79 Linux - General 3 04-08-2006 02:03 PM
Linking old libraries to new one? winterhunter Linux - Software 7 10-24-2005 05:37 AM
Problems statically linking with libsdl jakobf Programming 3 08-27-2004 01:20 AM


All times are GMT -5. The time now is 08:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration