Gcc Error Stdio.h
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 Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question 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; it only takes a minute: Sign up Unable to compile simple c program in Linux Mint 15 up vote 7 down vote favorite 5 I am a Linux Mint 15 User. i wanted to write simple program in C. Below is my code.(hw.c) #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 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: Anybody can ask a question Anybody can answer The http://stackoverflow.com/questions/19500018/unable-to-compile-simple-c-program-in-linux-mint-15 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 a, int b);' The file soma.c is #include < stdio.h > int soma http://unix.stackexchange.com/questions/179778/fatal-error-stdio-h-no-such-file-or-directory-while-compiling-a-c-file (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 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 ce
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 https://answers.launchpad.net/ubuntu/+source/gcc-defaults/+question/216281 hello.c hello.c:1:21: fatal error: 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 https://trac.macports.org/ticket/41385 tree Reading state information... Done build-essential is already 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 gcc error 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 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. gcc error stdio.h 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
SCAP-on-Apple SmartCard Services WebKit XQuartz Contact Terms of Use Privacy Policy All user-submitted text and content on this website is licensed under a Creative Commons Attribution 2.5 License unless otherwise noted. Copyright © 2011 Apple Inc. All rights reserved. New Ticket Tickets Wiki Browse Source Timeline Roadmap Ticket Reports Search Search: Context Navigation ← Previous TicketNext Ticket → Ticket #41385 (closed defect: invalid) Opened 3 years ago Last modified 3 years ago libgcc: fatal error: stdio.h: No such file or directory Reported by: pv_fua@… Owned by: macports-tickets@… Priority: Normal Milestone: Component: ports Version: 2.2.1 Keywords: mavericks Cc: engin.turetken@…, mww@… Port: libgcc Description "sudo port install gcc47" fails when trying to build libgcc uner Mavericks. See attached log file. Attachments gcc47.log (27.7 KB) - added by pv_fua@… 3 years ago. Log file Change History Changed 3 years ago by pv_fua@… Attachment gcc47.log added Log file comment:1 Changed 3 years ago by ryandesign@… Status changed from new to closed Cc mww@… added Summary changed from Cannot install gcc47 to libgcc: fatal error: stdio.h: No such file or directory Keywords mavericks added Resolution set to invalid Port set to libgcc The log is incomplete, but says: :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libgcc/work/gcc-4.8.2/libgcc/../gcc/tsystem.h:87:19: fatal error: stdio.h: No such file or directory :info:build #include