DIGIT-ARC read-only archive · snapshot: July 23, 2026

gcc probs

11 posts · originally from https://geek.digit.in/community/threads/gcc-probs.69978/

Vivek788
Vivek788 Original post #1
Oct 5, 2007 at 10:26 PM
I get error file or folder not found with any library file i include in my C program.
I am using feisty fawn.
M
Oct 5, 2007 at 10:30 PM
Can you give more details. Sounds a bit unclear to me on what exactly are you trying to say. Maybe give an example error message.
QwertyManiac
Oct 5, 2007 at 10:31 PM
How did you install GCC?

And also, does giving the entire path help (/usr/include/bits/stdio.h) ?
M
Oct 5, 2007 at 10:36 PM
Sometimes some libraries need to be linked while compiling. Maybe that's his problem. I had faced it with the math library.
Vivek788
Oct 5, 2007 at 10:44 PM
vivek@vivek-desktop:~/programs$ gcc 1.c
1.c:1:18: error: stdio.h: No such file or directory
1.c: In function ‘main’:
1.c:6: warning: incompatible implicit declaration of built-in function ‘printf’
1.c:7: warning: incompatible implicit declaration of built-in function ‘scanf’
1.c:10:2: warning: no newline at end of file
vivek@vivek-desktop:~/programs$ cat 1.c
#include<stdio.h>
main()
{
int i,y;
char *names[]={"PACIFIC","ATLANTIC"};
printf("Enter number:");
scanf("%d",&i);
printf("%o %x %d",i,i,i);
printf("%c %s",names[1],names[1]);
}vivek@vivek-desktop:~/programs$
[xubz]
[xubz] #6
Oct 5, 2007 at 10:59 PM
Well, Just installing GCC won't do any good. You need to install the Libraries too!

I'd suggest you to install the build-essential Package.

sudo apt-get install build-essential


Edit: On the Lighter note, For a good editor, Try Geany. It kinda supports compile and run by just pressing F5 :)
M
Oct 5, 2007 at 11:41 PM
well vi and kate support that too :p
BTW, build-essential package is available in feisty CD. No need to go online to download it.
Vivek788
Oct 6, 2007 at 4:48 PM
i installed libc6-dev and prob solved.
M
Oct 6, 2007 at 5:01 PM
That's good but still you will be missing a few things specially a C++ compiler and stuff. It would be good to install the full build-essential package.
T
techram #10
Oct 18, 2007 at 2:08 PM
is it your gcc problem in solaris?
Vivek788
Vivek788 #11
Oct 19, 2007 at 3:22 AM
feisty fawn