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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:25:56+00:00 2026-05-15T15:25:56+00:00

How to find the library, which contains the definition of particular function? I am

  • 0

How to find the library, which contains the definition of particular function? I am getting linker error.

  • 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-15T15:25:57+00:00Added an answer on May 15, 2026 at 3:25 pm

    You can use the nm command-line tool to list exported symbols in binaries:

    ~/src> cat nm-test.c
    
    static int plus_four(int x)
    {
            return x + 4;
    }
    
    int sum_plus_four(int a, int b)
    {
            return plus_four(a + b);
    }
    
    int product_plus_four(int a, int b)
    {
            return plus_four(a * b);
    }
    ~/src> gcc -c nm-test.c
    ~/src> nm ./nm-test.o
    00000000 t plus_four
    00000023 T product_plus_four
    0000000b T sum_plus_four
    

    According to the manual, ‘t’ means that the symbol is in the code (text) segment, and uppercase means it’s public.

    If you have a symbol that you’re looking for, you can use nm to make the symbols exported by a library accessible to e.g. grep:

    $ find -name lib*.a /example/library/path | xargs nm | grep -E "T $SYMBOL_TO_FIND"
    

    This command-line is an untested sketch, but it should show the concept.

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

Sidebar

Related Questions

Can't find the library which contains IDispatchEx interface. I want to implement this interface,
Do you have any ideas where to find a PHP class (library) which can
I have a class library which I maintain in it's own project/solution. It contains
The Ocaml manual contains an exercise ( here ) in which library object files
I have an Android App which contains an external dependend jar library. This external
Suppose I have a library which contains a bunch of interdependent functions, this library
How to find image A coordinates on image B which contains image A. I
Hereis the situation: I have a folder that contains library DLLs, which are not
The System.Windows.Threading.DispatcherObject class (which DependencyObject is based on) contains a useful function, called CheckAccess()
I'm trying to find a library for iPhone app that can represent a network

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.