Announcement

Collapse
No announcement yet.

gcc...where are the libraries??

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    gcc...where are the libraries??

    Hi, i've just installed this kubuntu since i messed up my debian etch. Now i need to do a program (it's a simple socket program, server-client, server sends date/time to client when client asks for it). I have an example program...but it doesn't compile. About a 100 errors...Since i know this program already ran before, i readed a little bit and it doesn't find any library!

    timonoj@timo:~/programacion$ gcc servicio.c
    servicio.c:1:19: error: stdio.h: No existe el fichero ó directorio
    servicio.c:2:20: error: string.h: No existe el fichero ó directorio
    servicio.c:3:19: error: errno.h: No existe el fichero ó directorio
    servicio.c:4:23: error: sys/types.h: No existe el fichero ó directorio
    servicio.c:5:24: error: sys/socket.h: No existe el fichero ó directorio
    servicio.c:6:24: error: netinet/in.h: No existe el fichero ó directorio
    servicio.c:7:19: error: netdb.h: No existe el fichero ó directorio
    servicio.c:10:22: error: sys/time.h: No existe el fichero ó directorio
    servicio.c:11:18: error: time.h: No existe el fichero ó directorio
    It just keeps saying "file or folder doesn't exist"

    #2
    Re: gcc...where are the libraries??

    install the package "build-essential", which has all the basic gcc stuff and libraries

    Comment


      #3
      Re: gcc...where are the libraries??

      Ok...Thank you very much! Now everything works fine, just a few (and expected) warnings

      Comment

      Working...
      X