PDA

View Full Version : P{roblem compiling with gcc and libs



MichalisZ
April 29th, 2007, 06:53 PM
Hello.
I 'm new to this community and I 'm really happy!
I have installed Ubuntu feisty 7.04 and I tried to compile a hello world program with gcc.
I 've used gcc in the past wioth no problem but now I receive tha message

test.c :1:19: error: stdio.h: No such file or directory

This means that there are no libraries? How can I find them?
Thanks everyone.

g3k0
April 29th, 2007, 06:55 PM
sudo apt-get install build-essential

TeamMicron
April 29th, 2007, 07:07 PM
Would installing make on this also work? I am new to this also so I am getting an understanding of what everything does. Thanks.
TeamMicron

MichalisZ
April 29th, 2007, 07:43 PM
I tried it but there are dependencies.
libc6-dev, libc-dev, g++ and goes on....
Is there a command to install dependencies?
or to overcome them?

Riemann
April 30th, 2007, 09:51 AM
Thanks for the answer to this post. I was getting mad ](*,) looking for that libraries too. Finally
sudo apt-get install build-essential solve the problem at once.

:guitar:

It would be nice if further releases of Ubuntu include them by default. :D

MichalisZ
April 30th, 2007, 10:59 AM
I still cannot install the build-essential package.
It seems that ubuntu prefer to install only their prefered packages but dependencies need other.