Thread: need *.h files

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    1

    need *.h files

    do you know where i can find *.h files for C programming? especifically, the ones i need are:
    socket.h
    in_systm.h
    in.h
    ip.h
    tcp.h
    ip_icmp.h
    netdb.h
    unistd.h
    stdlib.h
    string.h

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Read the FAQ.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  3. #3
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Your compiler doesn't have 'stdlib.h'? Get a new compiler.

    Quzah.
    Hope is the first step on the road to disappointment.

  4. #4
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    dammit hammer -

    /edit - good point quzah

    ...mm, what about string.h?
    The world is waiting. I must leave you now.

  5. #5
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Originally posted by Shadow
    dammit hammer -

    /edit - good point quzah

    ...mm, what about string.h?
    Well I didn't feel like typing "Your compiler doesn't have ___? Get a new compiler." over and over, so I only did it once.

    Quzah.
    Hope is the first step on the road to disappointment.

  6. #6
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    I see Quzah...you on the phone again?

    Original Poster:
    Try a new compiler, as the FAQ explains why "send me yaddayadda.h" doesn't work.
    Links for all the compilation you need are in Hammer's link.
    The world is waiting. I must leave you now.

  7. #7
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >do you know where i can find *.h files for C programming?
    If your compiler does not have a certain header then you probably will not be able to get it unless a third party library offers the same functionality. The problem is that the header is only the interface to a library that contains the details, so you need both. Even then you will probably still have problems since compiler libraries tend not to work with other compilers.

    >unistd.h
    If your compiler does not support this then you are most likely not on a POSIX compliant system. In that case unistd.h would fail for some functions even if you could get the library to work.

    >stdlib.h
    >string.h
    These are ISO Standard C headers, if your compiler does not support them then you have either a really really really old compiler, or a homegrown simplistic compiler that shouldn't be used for any real coding.

    -Prelude
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. add source files to embedded VC 4.0
    By George2 in forum C++ Programming
    Replies: 4
    Last Post: 06-13-2006, 03:28 AM
  2. *.cpp and *.h files understanding
    By ElastoManiac in forum C++ Programming
    Replies: 4
    Last Post: 06-11-2006, 04:45 AM
  3. Linking header files, Source files and main program(Accel. C++)
    By Daniel Primed in forum C++ Programming
    Replies: 3
    Last Post: 01-17-2006, 11:46 AM
  4. Multiple Cpp Files
    By w4ck0z in forum C++ Programming
    Replies: 5
    Last Post: 11-14-2005, 02:41 PM
  5. header and source files
    By gtriarhos in forum C Programming
    Replies: 3
    Last Post: 10-02-2005, 03:16 AM