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 7717105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:48:04+00:00 2026-06-01T02:48:04+00:00

I am compiling my code to create a shared library and finally linking them

  • 0

I am compiling my code to create a shared library and finally linking them to the correct libraries(shared libraries). However when i view my shared library with “nm -u” it shows unresolved symbols, mainly from (libm.so and libstdc++.so). I have compiled it with the flags -Wl,–no-undefined -Wl,–no-undefined-version but during linking it doesnot report anything.

Are these symbols reported by nm for libm and libstdc++ intended?
Please note that i am cross compiling for QNX OS.

Thanks in advance and kind Regards,

  • 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-06-01T02:48:06+00:00Added an answer on June 1, 2026 at 2:48 am

    Are these symbols reported by nm for libm and libstdc++ intended?

    Yes: when you link against shared libraries, the symbols stay unresolved. They get bound to the definition in the shared library at runtime. That’s what it means to link dynamically against other libraries.

    Update:

    i find other unresolved symbols too say for libsocket.so. It looks like this:
    U connect@@libsocket.so.2
    But the symbol for math libraries is like this:
    U pow
    Why is this difference even though all these are shared libraries.

    This is because connect in libsocket is a versioned symbol, but pow in libm is not. You can read about versioned symbols here.

    there is another shared library, to which when i link it shows this symbol:
    W _ZN15HWPos15getCCount
    Why is there this difference?

    This is a weakly-defined symbol, not an unresolved one. You can read about weak ELF symbols here.

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

Sidebar

Related Questions

I'm getting a lot of errors compiling code using the boost libraries, mainly when
I'm doing some test to learn how to create shared library. The template for
Let's say a create an (executable) assembly in memory by compiling a code string.
I have problem compilin this code..can anyone tell whats wrong with the syntax CREATE
I am dynamically compiling code in my client application. When I start the application
Take this non-compiling code for instance: public string GetPath(string basefolder, string[] extraFolders) { string
Compiling this code with g++ 4.7.0 ( -Wall -Wextra -Werror -Wconversion -std=c++11 ): #include
When compiling the code below with cl /c /clr /W4 the compiler says warning
I'm compiling some code which uses libcurl on a Debian Linux system. My dev
I am compiling my code with gcc 4.7.0. My code compiles fine with 4.6.1.

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.