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

  • SEARCH
  • Home
  • 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 4087190
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:49:26+00:00 2026-05-20T18:49:26+00:00

I am building a binary which uses multiple components which are compiled as .so

  • 0

I am building a binary which uses multiple components which are compiled as .so files. I am getting a flurry of linker errors which point to which .so file caused them, but can I get information about which files are calling undefined functions or if possible source code locations where undefined functions are being called? I am finding it too tedious to hunt down the function esp since lot of overloading and templates are being used (which means same name in many places). In windows, it shows which .o file caused the undefined symbol, but am stuck at the level of libraries in linux. I use g++ in linux. Any pointer would be useful.

  • 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-20T18:49:26+00:00Added an answer on May 20, 2026 at 6:49 pm

    You are asking “which object file inside a shared library is causing the error”.

    The problem is that by the time that shared library has been linked, all object files have been “fused together”, and no longer exist inside the shared library as separate entities, so your question is somewhat meaningless.

    That said, if you do a debug build (with -g flag), the linker will tell you which source file and line is causing the problem, which you then may be able to translate into the object file.

    If you can’t (e.g. because the problem symbol is referenced in a header file), you can ask the linker for help: rebuild the library again, passing the linker -y flag:

    g++ -fPIC -shared ${OBJECTS} -o foo.so -Wl,-y,my_unresolved_symbol
    

    will tell you which object(s) reference my_unresolved_symbol.

    Note: linker operates “below” C++, so you must pass the mangled name, e.g. _Znw to it.

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

Sidebar

Related Questions

I have a Makefile.am which will be responsible for building a final application binary:
I'm building an ajax file uploader, which is possible thanks to the new FormData
When building Boost binary libraries with bjam , one may specify which compiler to
I'm building a universal binary for OS X. I'm doing this through QT which
I have problems building a binary tree from the bottom up. THe input of
I have had incredible trouble building a binary of ffmpeg for Mac that works
I'm currently building a converter in C#. My program is converting from/to Decimal, Binary
We're building a Windows and Mac app using a commercial licence of Qt, which
Xcode is doing something bizzare which I at one point in time fixed but
Im a bit stumped here. Im working on building a binary heap class, modeled

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.