Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

510
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório

0

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

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda