Follow us on Twitter!
You cannot teach a man anything; you can only help him find it within himself. - Galileo
Friday, April 25, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 22
Guests Online: 22
Members Online: 0

Registered Members: 82909
Newest Member: awais
Latest Articles
View Thread

HellBound Hackers | Computer General | General Computer Problems

Author

Trouble compiling on linux


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 25-12-06 05:20
I've recently installed Ubuntu onto my computer. When I try to compiler a C program from the terminal this is what happens

~$ gcc -o samp samp.c
samp.c:1:19: error: stdio.h: No such file or directory
samp.c:2:20: error: stdlib.h: No such file or directory
samp.c: In function ‘main’:
samp.c:5: warning: incompatible implicit declaration of built-in function ‘printf’

I'm sure it's something simple that I need to do, but I would really appreciate it if someone could tell me what I need to fix.
Author

RE: Trouble compiling on linux


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 25-12-06 09:36
I have Ubuntu too, and I was surprised how many things were not in the package I received. I had to install gcc, g++ and even make...
So maybe this is your problem. Go to [system]->[administration]->[synaptic p. m] hit search and type in gcc, after found mark it for installation and click apply. If you can't do it, google for it, and if this don't solves your problem, google it again...


Author

RE: Trouble compiling on linux


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 25-12-06 13:11
obviously your midding the header files for the c program