Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

507
Views
Ignore undefined reference in c++

Is there a compiler option for ignoring undefined references? I'm compiling C++ code under Linux.

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

No. This is impossible. The linker physically cannot produce an output executable with an undefined reference. It's not a choice that the linker makes.

It's kind of like saying, "Sort this list, but I won't tell you what the list is" or "Solve my problem but I only dumped the code".

over 4 years ago · Santiago Trujillo Report

0

You are not compiling, you are linking. The undefined reference error occurs when the program you are linking calls a function which is not defined inside the program parts you are linking together. Ignoring that error would mean the program calls a function that does not exist - what should happen then?

So the short answer is: theres no such option, and it would not make sense.

over 4 years ago · Santiago Trujillo Report

0

The compiler already does ignore undefined references, quite by design.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!