need help with c compiler

E

Ebay boy

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.
 
M

Mark A. Odell

(e-mail address removed) (Ebay boy) wrote in

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.

I think that's pretty much impossible since it's not a compiler without
the header files (IMHO). You ought to call the vendor and ask how to
configure the compiler to find header files. You could do a search for all
*.h files starting from the root directory of your compiler install dir
too.

Besides, these file may be *very* compiler specific so using one from some
other compiler will not help.
 
J

Joona I Palaste

Ebay boy said:
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.
 
S

Servé Lau

Ebay boy said:
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.

What compiler did you buy then?
 
A

Alan Balmer

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.

You may have bought only part of a compiler, you may have installed it
incorrectly, you may not know how to invoke it properly - the
possibilities are many, and probably off-topic here. Without knowing
what compiler you bought, we can't even suggest where to ask, but you
need a group which deals with your specific implementation.
 
T

Tim Prince

Ebay boy said:
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.
The installation instructions for your compiler really ought to tell you, if
they aren't included with the compiler. Certain compilers expect the
relevant components of the operating system to have been installed, but
those may be optional. For example, Intel compilers require that the most
commonly used compiler for the target OS should have been installed.
 
A

A123b456c

Subject: need help with c compiler
From: (e-mail address removed) (Ebay boy)
Date: 1/8/04 1:26 PM US Mountain Standard Time
Message-id: <[email protected]>

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.
Yes, I'd say you are one, evryone who buys
a compiler is an idiot.
Return the stuff, get your money back, go
to www.borland.com and download their
free compiler. Then get the compiler "Dev-C++" install it and then you have two
very good and above all complete and free
compilers.
I don't know the address for Dev-C++,
ask Altavista for it. Avoid Google, they send
spy software.
You can get free compilers for virtually every existing language. Just ask
altavista:
"Free ADA compiler", "free Fortran compiler".
If you work on Linux-Unix, two compilers
are included in the system, waiting for you to use them.
 
K

Kevin Goodsell

A123b456c said:
Yes, I'd say you are one, evryone who buys
a compiler is an idiot.
Return the stuff, get your money back, go
to www.borland.com and download their
free compiler. Then get the compiler "Dev-C++" install it and then you have two
very good and above all complete and free
compilers.
I don't know the address for Dev-C++,

Dev-C++ is not a compiler. It's a front-end for gcc.
ask Altavista for it. Avoid Google, they send
spy software.

Bullshit. Even if this were true it'd be your own fault for using a
browser that allows installation of software without your permission.

-Kevin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,129
Messages
2,570,770
Members
47,329
Latest member
FidelRauch

Latest Threads

Top