PDA

View Full Version : Compiling problem



NitrOuS
December 12th, 2005, 03:58 AM
I hope I made thread in the right place...I have a problem compiling my c programmes. I have installed gcc compiler in console with the command
apt-get install gcc
and everything worked fine.But when I try to compile a c file it returns me that it doesn't recognises the *.h files even though I searched them and I found them in my system for example stdio.h library is located in /usr/lib/perl/5.8.7/CORE/nostdio.h
(this is the result returned by 'locate' command). So there must be a problem with the linker. What can I do to fix it?Thanx!

yentingchen
December 12th, 2005, 08:50 AM
Do u install libc6-dev package?

NitrOuS
December 12th, 2005, 11:46 AM
Do u install libc6-dev package?
I don't thing so but how can I do it?I'm new in linux and I will need some more help...

yentingchen
December 12th, 2005, 04:10 PM
I don't thing so but how can I do it?I'm new in linux and I will need some more help...

apt-get update
apt-get install libc6-dev

NitrOuS
December 13th, 2005, 06:43 PM
Thanks a lot!That helped!I search for this in net generally and I also installed a builter and now eveything works just fine!Thanks for your time!
:D :p