User forums => Help => Topic started by: carlyn on September 20, 2014, 12:44:08 am
Title: Simple problem /bin/sh: 1: cannot open stdio.h: No such file
Post by: carlyn on September 20, 2014, 12:44:08 am
I have installed code:Blocks in Linux Mint. It's a beautiful program . my problem is that I get thre error below even with the simplest code lke gettoing Helllo world rto print to screen, its below?
#include <stdio.h> #nclude <stlib.h>
int main() { Printf("Hello world!\n"); return 0; }
/bin/sh: 1: cannot open stdio.h: No such file
Title: Re: Simple problem /bin/sh: 1: cannot open stdio.h: No such file
Post by: stahta01 on September 20, 2014, 12:47:55 am
Title: Re: Simple problem /bin/sh: 1: cannot open stdio.h: No such file
Post by: carlyn on September 20, 2014, 01:14:29 am
still getting error around the <stdio.h> seems it cant find stdio.h ?
I went to the settings and spent awhile there and coulde not find a solution.
I am using linux and C not C++
Title: Re: Simple problem /bin/sh: 1: cannot open stdio.h: No such file
Post by: carlyn on September 20, 2014, 07:24:56 am
I still cant get it working. I have played around with the settings. I get no errors or warnings like this .....
-------------- Build: Debug in mikesTrial (compiler: GNU GCC Compiler)---------------
/bin/sh: 1: cannot open stdio.h: No such file Process terminated with status 2 (0 minute(s), 0 second(s)) 0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
Title: Re: Simple problem /bin/sh: 1: cannot open stdio.h: No such file
Post by: scarphin on September 20, 2014, 10:28:58 am
What do you get when you type 'gcc -v' in bash?
Title: Re: Simple problem /bin/sh: 1: cannot open stdio.h: No such file
Post by: Jenna on September 20, 2014, 11:55:06 am
Please post the content of the "Build log" (not the "Build messages") after a full rebuild and with full commandline logging turned on. If you do not understand what I mean look into the link provided by Tim.
Title: Re: Simple problem /bin/sh: 1: cannot open stdio.h: No such file
Post by: carlyn on September 20, 2014, 01:03:55 pm
OK, This is the Build Log.....
-------------- Build: Debug in CARLYNtRYIT (compiler: GNU GCC Compiler)---------------
gcc -Wall -g -D#include <stdio.h> -D#nclude <stlib.h> -c "/home/doom/Documents/codeblocks programs/CARLYNtRYIT/main.c" -o obj/Debug/main.o /bin/sh: 1: cannot open stdio.h: No such file Process terminated with status 2 (0 minute(s), 0 second(s)) 0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
Title: Re: Simple problem /bin/sh: 1: cannot open stdio.h: No such file
Post by: carlyn on September 20, 2014, 01:05:44 pm
Title: Re: Simple problem /bin/sh: 1: cannot open stdio.h: No such file
Post by: scarphin on September 20, 2014, 02:36:59 pm
I'm not a linux expert but what happens when you add '/usr/include/c++/4.8' and '/usr/lib' to compiler and linker search directories respectively in the 'global compiler settings' for your compiler?
Title: Re: Simple problem /bin/sh: 1: cannot open stdio.h: No such file
Post by: carlyn on September 20, 2014, 02:53:24 pm
I dont know. But I booted into ubuntu instead f mint and code:blocks works fine. I installed it awhile ago. I had a couple of problems, one like i am having now and the other was I needed to get code:blocks to output to a terminal !!!!!!
Trouble is I have forgotten the steps i took :(
Title: Re: Simple problem /bin/sh: 1: cannot open stdio.h: No such file
Post by: stahta01 on September 20, 2014, 04:17:08 pm