Include Stdio Error
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
Fatal Error Stdio.h No Such File Or Directory #include Stdio.h ^ Compilation Terminated
more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users stdio.h no such file or directory ubuntu Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping fatal error: stdio.h: no such file or directory mac 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
Stdio.h No Such File Or Directory Linux Mint
write simple program in C. Below is my code.(hw.c) #include
Fatal Error Stdio.h No Such File Or Directory Cross Compile
packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: build-essential : Depends: libc6-dev but it is not going to be installed or libc-dev Depends: g++ (>= 4:4.4.3) but it is not going to be installed Depends: dpkg-dev (>= 1.13.5) but it is not going to be installed E: Unable to correct problems, you have held broken packages. So what is wrong? What is the problem? How to solve it? PS. The result of locate stdio.h is /usr/lib/perl/5.14.2/CORE/nostdio.h /usr/lib/syslinux/com32/include/stdio.h linux gcc compiler-errors mint share|improve this question asked Oct 21 '13 at 16:35 namco 1,57283461 2 Try sudo aptitude update then sudo aptitude upgrade then sudo aptitude install libc-dev g++ build-essential. Notice that
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 stdio.h no such file or directory windows ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux
Fatal Error Stdio.h No Such File Or Directory Windows
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 fatal error: stdio.h: no such file or directory arm 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 “fatal error: stdio.h : No such file or directory” while compiling a C file [closed] up vote 0 http://stackoverflow.com/questions/19500018/unable-to-compile-simple-c-program-in-linux-mint-15 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, 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 http://unix.stackexchange.com/questions/179778/fatal-error-stdio-h-no-such-file-or-directory-while-compiling-a-c-file 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 comment| 1 Answer 1 active oldest votes up vote 5 down vote accepted You have to compile it; as in: gcc -o soma soma.c Then run by: ./soma As of now you are running is as a script with what ever shell you are using. A better compile line would be: gcc -Wall -Wextra -pedantic
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 : https://answers.launchpad.net/ubuntu/+source/gcc-defaults/+question/216281 No such file or directory compilation terminated. shell returned 1 installed build-essential cliffm@cjm:~$ sudo https://forums.linuxmint.com/viewtopic.php?t=124309 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 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: no such 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 Reading state information... no such file 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