Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 974291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T03:24:47+00:00 2026-05-16T03:24:47+00:00

I’m getting some errors which make me think that my Linux program isn’t linking

  • 0

I’m getting some errors which make me think that my Linux program isn’t linking to the libraries it’s supposed to. How can I get the full path to all linked libraries? I know ldd will give me the names, but how can I use that to get the full path?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T03:24:48+00:00Added an answer on May 16, 2026 at 3:24 am

    Actually ldd gives you absolute path with filename of whatever from your application’s shared library dependencies it’s able to find.

        $ ldd v8test 
        linux-gate.so.1 =>  (0xb78b2000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb787e000)
        librt.so.1 => /lib/i686/cmov/librt.so.1 (0xb7875000)
        libcppunit-1.12.so.1 => /usr/lib/libcppunit-1.12.so.1 (0xb782c000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7604000)
        libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb75dd000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb75bf000)
        libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7478000)
        libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb745f000)
        libboost_system-mt.so.1.38.0 => /usr/lib/libboost_system-mt.so.1.38.0 (0xb745b000)
        /lib/ld-linux.so.2 (0xb78b3000)
        libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb7456000)
        libboost_thread-mt.so.1.38.0 => /usr/lib/libboost_thread-mt.so.1.38.0 (0xb7383000)
        libboost_filesystem-mt.so.1.38.0 => /usr/lib/libboost_filesystem-mt.so.1.38.0 (0xb7370000)
        libtinyxml.so.1 => /home/dmitry/tinyxml/libtinyxml.so.1 (0xb7359000)
        libboost_regex-mt.so.1.38.0 => /usr/lib/libboost_regex-mt.so.1.38.0 (0xb728c000)
        libmysqlclient_r.so.15 => /usr/lib/libmysqlclient_r.so.15 (0xb70a1000)
        libicuuc.so.42 => /usr/lib/libicuuc.so.42 (0xb6f61000)
        libicudata.so.42 => /usr/lib/libicudata.so.42 (0xb601a000)
        libicui18n.so.42 => /usr/lib/libicui18n.so.42 (0xb5e6b000)
        libcrypt.so.1 => /lib/i686/cmov/libcrypt.so.1 (0xb5e39000)
        libnsl.so.1 => /lib/i686/cmov/libnsl.so.1 (0xb5e22000)
    

    The libraries are searched by its soname (e.g. libboost_filesystem-mt.so.1.38.0) in paths mentioned in /etc/ld.so.conf, LD_LIBRARY_PATH or set with rpath in the binary itself.

    If ldd is unable to find something it will look like

        libicuuc.so.42 => not found
    

    In this case consider using one of the mentioned ways to give correct search path.

    ldd will warn you when it’s unable to load the library due to some reason.

    $ ldd v8test 
    ./v8test: error while loading shared libraries: /home/dmitry/a/liba.so.2: invalid ELF header
    

    Of course it can’t protect you from the errors in the library itself. In fact it’s possible your application to depend on libraries A and B, both depending on incompatible versions on some library C. In this situation your program has a good chance to crash (unless library C doesn’t have symbol versioning) – ldd is not going to warn you, but you should be able to see it in the output.

    Program-Library-HOWTO will be useful for you.

    Check also some options of ldd or dynamic linker.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.