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

417
Visualizações
C compiler error: cdefs.h not found

(There are similar questions answered but none really applies to this)

I have a board with Fedora 20 and armv71 architecture (32-bit). I have installed all the gcc libraries via yum which are required such as gcc, g++, cmake, glibc, glibc-devel etc. (glibc-devel is equivalent of libc6-dev-i386 in Fedora).

I'm trying to compile a C project, which compiles just fine on MAC OS 64-bit and Ubuntu 64-bit, but gives me the following error on Fedora 20 when I run make:

/usr/include/features.h:364:25: fatal error: sys/cdefs.h: No such file or directory
 #  include <sys/cdefs.h>

When I check /usr/include/sys folder, it is empty and cdefs.h file does not exist anywhere on the system.

The problem seems to be I'm missing a package (possibly?) but cannot figure out which one is missing since I seem to have all installed. Or 32-bit C compiler missing that file for a specific reason? Any help would be appreciated.

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

using this command (or a similar one, depending on your OS)

apt-get install libc6-dev-i386
over 4 years ago · Santiago Trujillo Relatório

0

Since you are on an RPM-based distro, you can do this:

# yum provides '*sys/defs.h'

and let the tool do the hard part.

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