View Full Version : Compile Error in C programmes using command line interface
Electricalkhukuma
February 15th, 2009, 11:43 AM
Whenever i try to write some code in "nano" using command line, my code doesn't compile.
e.g
#include<stdio.h>
int main(void){
printf("TEST CODE");
return 0;
}
whenever i try to compile it, the error shows up like this:
Error: "stdio.h" no such file or directory exists.
Yellow Pasque
February 15th, 2009, 12:11 PM
sudo apt-get install libc6-dev
bapoumba
February 15th, 2009, 09:57 PM
Moved to PT.
jimi_hendrix
February 15th, 2009, 10:50 PM
sudo apt-get install build-essential #if this doesnt work try build-essentials...i cant remember wich
WW
February 15th, 2009, 11:54 PM
sudo apt-get install build-essential #if this doesnt work try build-essentials...i cant remember wich
build-essential (http://packages.ubuntu.com/intrepid/build-essential) is the "meta-package" to install. Installing it will install gcc, g++, the C libraries and headers, make, and some other stuff.
jimi_hendrix
February 15th, 2009, 11:55 PM
build-essential (http://packages.ubuntu.com/intrepid/build-essential) is the "meta-package" to install. Installing it will install gcc, g++, the C libraries and headers, make, and some other stuff.
right, and the forum advises installing it first (check sticky)
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.