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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:49:45+00:00 2026-06-11T21:49:45+00:00

I know this indicates a linker problem, mostly unresolved symbols. I know that to

  • 0

I know this indicates a linker problem, mostly unresolved symbols. I know that to resolve that problem / to get rid of that errormessage, one would have to provide much more information. I know there is a lot of questions on resolving this problems on SO already.

My questions aims at helping to understand make and ld, to find out what (and who) is trying to express what with this line.

collect2: ld returned 1 exit status
  • What does “collect2:” mean? Is it a step make invokes ? I can’t find an executable with that name on my system.
  • Does it mean I am using ld ? I configured my project / Makefile so that g++ should do the linking, so why is LD still involved
  • Who is writing that message ? make ? ld ? g++ ?
  • Is there a meaningful list of possible exit codes ?
  • 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-11T21:49:46+00:00Added an answer on June 11, 2026 at 9:49 pm

    First things first, you need to know that the command-line programs named gcc and g++ are only umbrella (wrappers) around the actual preprocessor/parser-compiler/assembler/linker commands. Their real name is cpp, cc1 or cc1plus, as and ld, respectively. GCC helps in unifying their use, command line interface and providing a meaningful set of default (and required) options for them. It is very hard, for example, to link a binary directly using ld – if ld is not run with all the 20+ (IIRC) correct options, it just fails to work.

    Now that you know that, you can see:

    Does it mean I am using ld ? I configured my project / Makefile so that g++ should do the linking, so why is LD still involved

    It rather means you invoke GCC but in turn it invokes LD. GCC itself knows nothing – neither compiling, neither linking, as it’s just a wrapper. (Go do a wc -c on /usr/bin/gcc and be surprised that it’s only a few kilobytes! Now do the same for /usr/libexec/gcc/cc1plus and find out the horrifying truth: it is several 10 megs big!)

    What does "collect2:" mean? Is it a step make invokes ? I can’t find an executable with that name on my system.

    Collect2 is also another level of indirection between gcc and ld. More about it on its official website.

    Who is writing that message ? make ? ld ? g++ ?

    Either g++ (that’s it as far as I know) or collect2 itself maybe.

    Is there a meaningful list of possible exit codes ?

    The meaning is conventional – zero means success, nonzero means failure. If an exhaustive list exists, it should be able to be viewed by invoking man ld.

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

Sidebar

Related Questions

I know this is an easy concept, but I just can't seem to get
I know this is really general, but I get this (see below) when I
I can subclass the cell and resolve the problem, but I'd like to know
If you know what this kind of problem is called, let me know (unless
Know this might be rather basic, but I been trying to figure out how
i know this is a stupid question but i d'ont know how to do
I know this is a frequently asked question and I havent got a clear
I know this question has been asked a couple of times before. I m
I know this is possible in Perl, but I was wondering if this can
I know this is an old question, but I have spend any hours on

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.