Forum: Compiler & IDEs gcc compiler


von Gregor (Gast)


Lesenswert?

Hallo,

ich habe ein Problem beim compilern unter Ubuntu-Linux. Mein gcc 
compiler findet meine #includes nicht aus dem c-sourcecode.

Kann mir jemand helfen?

MfG

Gregor M. (Münster)

von Hans-Ulrich R (Gast)


Lesenswert?

Hast du die Includes mit <...> oder "..." angegeben?

von Stefan (Gast)


Lesenswert?

Welche Pfade zu den Includedateien werden benutzt? Verwende mal die -v 
Option

-v
Print (on standard error output) the commands executed to run the stages 
of compilation. Also print the version number of the compiler driver 
program and of the preprocessor and the compiler proper.

Shell> gcc -v hello_world.c -o hello_world

Was erscheint als Ausgabe?

Stimmt das Environment?

http://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html#Environment-
Variables

von Ralf (Gast)


Lesenswert?

Bei Ubuntu wird mit der Standardinstallation die libc6-dev nicht mit 
installiert.

GNU C Library: Development Libraries and Header Files
Contains the symlinks, headers, and object files needed to compile
and link programs which use the standard C library.

Dann sollte GCC die Includes mit <....> finden.

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.