Gcc Fatal Error Stdio.h No Such File Or Directory
Contents |
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME Get UbuntuKylin Ubuntu Code of Conduct Ubuntu Wiki Community Wiki Other Support Launchpad Answers Ubuntu stdio.h no such file or directory ubuntu IRC Support AskUbuntu Official Documentation User Documentation Social Media Facebook Twitter Useful Links Distrowatch
Fatal Error: Stdio.h: No Such File Or Directory Mac
Bugs: Ubuntu PPAs: Ubuntu Web Upd8: Ubuntu OMG! Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login
Stdio.h No Such File Or Directory Linux Mint
Advanced Search Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk stdio.h: No such file or directory Having an Issue With Posting ? Do you want to help us
Fatal Error Stdio.h No Such File Or Directory Cross Compile
debug the posting issues ? < is the place to report it, thanks ! Page 1 of 8 123 ... Last Jump to page: Results 1 to 10 of 75 Thread: stdio.h: No such file or directory Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode December 8th, 2006 #1 prezbedard View Profile View Forum stdio.h no such file or directory windows Posts Private Message Frothy Coffee! Join Date Apr 2006 Location just North of Boston Beans 222 DistroUbuntu 10.04 Lucid Lynx stdio.h: No such file or directory I just switched my desktop OS to Ubuntu 6.10. I wanted to play around with C a bit but ran into a problem. I was getting the error Code: stdio.h: No such file or directory I have read through the forums and saw people with the same issue. I tried Code: sudo apt-get install build-essential Which gave me an error I then tried Code: sudo aptitude install build-essential It installed build-essential however it didn't solve the problem I am getting when compiling my sample program: Code: #include
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 fatal error stdio.h no such file or directory windows company Business Learn more about hiring developers or posting ads with us Unix & Linux fatal error: stdio.h: no such file or directory alpine Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, fatal error: stdio.h: no such file or directory arm FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top https://ubuntuforums.org/showthread.php?t=314578 “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 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, http://unix.stackexchange.com/questions/179778/fatal-error-stdio-h-no-such-file-or-directory-while-compiling-a-c-file 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 are unlikely to help future readers." – Braiam, Faheem Mitha, John WH Smith, jasonwryanIf this question can be reworded to fit the rules in the help center, please edit the question. Your title didn't match your question: you didn't even try to run gcc. –Gilles Jan 18 '15 at 21:46 add a
Ubuntu 12.10. now it tells me stdio.h no such file. The test file is std hello.c file #include < stdio.h > https://answers.launchpad.net/ubuntu/+source/gcc-defaults/+question/216281 void main() { printf("\nHello World\n"); } !gcc hello.c hello.c:1:21: fatal error: http://askubuntu.com/questions/428433/lm-option-doesnt-work-in-gcc-4-8-1 stdio.h : No such file or directory compilation terminated. shell returned 1 installed build-essential cliffm@cjm:~$ 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 the newest version. build-essential set to manually installed. Still will no such 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 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 no such file 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 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
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start 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 or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top -lm option doesn't work in GCC 4.8.1 up vote 2 down vote favorite 1 I know I'm not supposed to be posting problems related to programming here. But I couldn't think of any better place and it's quite relevant too. The problem is exactly what the title indicates: when I write a program in C language and it contains #include