User forums > Help

Simple problem /bin/sh: 1: cannot open stdio.h: No such file

<< < (2/3) > >>

Jenna:
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.

carlyn:
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))
 

carlyn:

--- Quote from: scarphin on September 20, 2014, 10:28:58 am ---What do you get when you type 'gcc -v' in bash?


--- End quote ---


doom@doom-System-Product-Name ~ $ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.2-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)

scarphin:
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?

carlyn:
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  :(

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version