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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:29:30+00:00 2026-06-13T01:29:30+00:00

I have a linking error which I’m supposed to fix using the nm command

  • 0

I have a linking error which I’m supposed to fix using the nm command on Unix.

If I have the following linking error: undefined reference to 'program_name', and when running nm on that object file, program_name symbol is shown as follows in the symbol table: U program_name.

I know program_name is undefined, and is defined in another object file which needs to be included with the original object file. My question is: how can I find which object file it is? Is that possible? I have a bunch of object files in a directory and it would be one of them. There’s way too many to try all of them.

  • 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-13T01:29:32+00:00Added an answer on June 13, 2026 at 1:29 am

    You can do this:

    $ nm *.o 
    

    Look for program_name in the output (assuming you have a .o extension on your object files).

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

Sidebar

Related Questions

I have the following piece of code which uses ICU macros in order to
I have some linking issues which I do not understand. Here are the source:
Have a linking (or ref) table which has a dual primary key. Need to
I am using boost's threading library and have run into linking issues in Visual
Here is the error snippet /home/jamesblack/Development/v2server/svr_tick.c:1309: undefined reference to `deflateEnd' This happens when I
I have following simple piece of code, which is a part of ipv6 handling
I have these weird linking errors in iOS. Can someone explain them and how
I have a problem linking an application for an embedded target. I'm developing on
I have some strange linking problem in my Visual Studio 2005 C++ project. As
I have two tables with a linking table describing their many-to-many relationship. TABLE buildings

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.