Ebay boy <ac*****************@yahoo.com> scribbled the following:
I have recently bought a compiler and I have this sample code that
includes the following:
#include <stdlib.h>
#include <string.h>
#include <time.h>
Unfortunately, my compiler doesn't incude these. So where can I get
these files from? I'm a computer idiot so please be clear. Any help is
appreciated.
Your compiler is either broken or aimed at a free-standing
implementation. The ISO C standard requires all compilers for hosted
(i.e. normal computer) implementations to provide all the above
headers.
Where can you get them? Nowhere, I'm afraid. All compilers implement
those headers in different ways, so headers from another compiler would
be useless for you. You could try the compiler vendor, but if they don't
have them, their compiler is broken, and shouldn't be called a C
compiler.
It might be that your compiler is really for a free-standing
implementation - embedded computers in phones or PDAs or toasters or
whatever - but in that case the vendor should have told you about it.
--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\--
http://www.helsinki.fi/~palaste --------------------- rules! --------/
"How can we possibly use sex to get what we want? Sex IS what we want."
- Dr. Frasier Crane