Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

Rep: Reputation: 0
Statically linking to libraries


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 "" as dependency.

Any one knows which package is part of? What package should i tell user to install to make sure 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.

Old 07-06-2009, 12:43 PM   #2
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


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:17 AM.

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