Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 05-10-2007, 10:26 PM   #1 (permalink)
In The Zone
 
Vivek788's Avatar
 
Join Date: Jul 2006
Location: Cochin
Posts: 340
Default gcc probs


I get error file or folder not found with any library file i include in my C program.
I am using feisty fawn.
__________________
Viva Green Computing!!
http://www.vivtech.blogspot.com/
Vivek788 is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 05-10-2007, 10:30 PM   #2 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: gcc probs

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.
__________________
http://www.bash.org/?258908
mehulved is offline  
Old 05-10-2007, 10:31 PM   #3 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,658
Default Re: gcc probs

How did you install GCC?

And also, does giving the entire path help (/usr/include/bits/stdio.h) ?
QwertyManiac is offline  
Old 05-10-2007, 10:36 PM   #4 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: gcc probs

Sometimes some libraries need to be linked while compiling. Maybe that's his problem. I had faced it with the math library.
__________________
http://www.bash.org/?258908
mehulved is offline  
Old 05-10-2007, 10:44 PM   #5 (permalink)
In The Zone
 
Vivek788's Avatar
 
Join Date: Jul 2006
Location: Cochin
Posts: 340
Default Re: gcc probs

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$
__________________
Viva Green Computing!!
http://www.vivtech.blogspot.com/
Vivek788 is offline  
Old 05-10-2007, 10:59 PM   #6 (permalink)
"The Cake is a Lie!!"
 
[xubz]'s Avatar
 
Join Date: Oct 2006
Posts: 471
Default Re: gcc probs

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
__________________
[xubz] ● http://xubz.com/
[steam_id] ● http://steamcommunity.com/id/xubz
[xubz] is offline  
Old 05-10-2007, 11:41 PM   #7 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: gcc probs

well vi and kate support that too
BTW, build-essential package is available in feisty CD. No need to go online to download it.
__________________
http://www.bash.org/?258908
mehulved is offline  
Old 06-10-2007, 04:48 PM   #8 (permalink)
In The Zone
 
Vivek788's Avatar
 
Join Date: Jul 2006
Location: Cochin
Posts: 340
Default Re: gcc probs

i installed libc6-dev and prob solved.
__________________
Viva Green Computing!!
http://www.vivtech.blogspot.com/
Vivek788 is offline  
Old 06-10-2007, 05:01 PM   #9 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: gcc probs

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.
__________________
http://www.bash.org/?258908
mehulved is offline  
Old 18-10-2007, 02:08 PM   #10 (permalink)
Right Off the Assembly Line
 
Join Date: Jan 2007
Posts: 11
Default Re: gcc probs

is it your gcc problem in solaris?
techram is offline  
Old 19-10-2007, 03:22 AM   #11 (permalink)
In The Zone
 
Vivek788's Avatar
 
Join Date: Jul 2006
Location: Cochin
Posts: 340
Default Re: gcc probs

feisty fawn
__________________
Viva Green Computing!!
http://www.vivtech.blogspot.com/
Vivek788 is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help me Out with my probs !! coolboy_n QnA (read only) 6 17-04-2007 04:52 PM
N70 probs.... sam_1710 Mobiles and Tablets 12 28-10-2006 07:46 AM
net probs in qd montsa007 Mobiles and Tablets 1 27-05-2006 01:14 AM
C++ probs... legolas Open Source 2 01-05-2006 07:34 PM

 
Latest Threads
- by Sujeet
- by soumya
- by clmlbx
- by Charan

Advertisement




All times are GMT +5.5. The time now is 01:02 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2