Error Stdio.h No Such File
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers stdio.h no such file or directory ubuntu or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question fatal error: stdio.h: no such file or directory mac x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them;
Stdio.h No Such File Or Directory Linux Mint
it only takes a minute: Sign up GCC fatal error: stdio.h: No such file or directory up vote 23 down vote favorite 7 I'm trying to compile a program in C on OS X 10.9 with GCC 4.9 (experimental). For
Fatal Error Stdio.h No Such File Or Directory Cross Compile
some reason, I'm getting the following error at compile time: gcc: fatal error: stdio.h: No such file or directory I then tried a simple Hello World program: #include
Ubuntu 12.10. now it tells me stdio.h no such file. The test file is std hello.c file #include < stdio.h > void main() { printf("\nHello World\n"); } !gcc hello.c hello.c:1:21: fatal error: stdio.h
Fatal Error Stdio.h No Such File Or Directory Windows
: No such file or directory compilation terminated. shell returned 1 installed build-essential cliffm@cjm:~$ fatal error: stdio.h: no such file or directory alpine sudo apt-get install build-essential [sudo] password for cliffm: Reading package lists... Done Building dependency tree Reading state information... Done build-essential is already fatal error: stdio.h: no such file or directory arm the newest version. build-essential set to manually installed. Still will not compile? Thanks for any help Question information Language: English Edit question Status: Solved For: Ubuntu gcc-defaults Edit question Assignee: No assignee Edit question Solved http://stackoverflow.com/questions/19580758/gcc-fatal-error-stdio-h-no-such-file-or-directory by: marcobra (Marco Braida) Solved: 2012-12-09 Last query: 2012-12-09 Last reply: 2012-12-09 Related bugs Link existing bug Related FAQ: None Link to a FAQ This question was reopened 2012-12-09 by Cliffm marcobra (Marco Braida) (marcobra) said on 2012-12-08: #1 try to install libc6-dev Cliffm (c2mcatee) said on 2012-12-08: #2 Hi Marco This is the result. sudo apt-get install libc6-dev [sudo] password for cliffm: Reading package lists... Done Building dependency tree https://answers.launchpad.net/ubuntu/+source/gcc-defaults/+question/216281 Reading state information... Done libc6-dev is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. marcobra (Marco Braida) (marcobra) said on 2012-12-08: #3 #include "stdio.h" void main() { printf("\nHello World\n"); } Try this... marcobra (Marco Braida) (marcobra) said on 2012-12-08: #4 compile with gcc -o hello -ansi hello.c marcobra (Marco Braida) (marcobra) said on 2012-12-08: #5 Run with ./hello marcobra (Marco Braida) (marcobra) said on 2012-12-08: #6 remove spaces in
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this http://unix.stackexchange.com/questions/179778/fatal-error-stdio-h-no-such-file-or-directory-while-compiling-a-c-file site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: no such Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top “fatal error: stdio.h : No such file or directory” while compiling a C file [closed] up vote 0 down vote favorite Trying to compile following code in terminal i got root@debian:/home/mz2/Documentos# LANG=C ./soma.c ./soma.c: line 2: syntax error near unexpected token `(' ./soma.c: line 2: `int soma (int no such file a, int b);' The file soma.c is #include < stdio.h > int soma (int a, int b); int main (int argc, char **argv) { int x, y, z; x = 10; y = 12; z = soma(x, y); fprintf(stdout, "A soma de %d com %d é %d\n", x, y, z); return 0; } int soma (int a, int b) { return (a + b); } When I run root@debian:/home/mz2/Documentos# LANG=C gcc -o soma soma.c soma.c:1:21: fatal error: stdio.h : No such file or directory compilation terminated. And... root@debian:/home/mz2/Documentos# LANG=C gcc -Wall -Wextra -pedantic -o soma soma.c soma.c:1:21: fatal error: stdio.h : No such file or directory compilation terminated. How can I fix this and run it? compiling c share|improve this question edited Jan 18 '15 at 22:05 Braiam 16.9k955100 asked Jan 18 '15 at 21:38 Vitor Mazuco 3943822 closed as off-topic by Braiam, jimmij, Faheem Mitha, John WH Smith, jasonwryan Jan 19 '15 at 0:38 This question appears to be off-topic. The users who voted to close gave this specific reason:"Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they