Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

509
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

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 Denunciar

0

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

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda