By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,194 Members | 817 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,194 IT Pros & Developers. It's quick & easy.

need help with c compiler

P: n/a
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.
Nov 14 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
ac*****************@yahoo.com (Ebay boy) wrote in
news:a7**************************@posting.google.c om:
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.

--
- Mark ->
--
Nov 14 '05 #2

P: n/a
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
Nov 14 '05 #3

P: n/a
"Ebay boy" <ac*****************@yahoo.com> wrote in message
news:a7**************************@posting.google.c om...
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?
Nov 14 '05 #4

P: n/a
On 8 Jan 2004 12:26:11 -0800, ac*****************@yahoo.com (Ebay boy)
wrote:
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.

--
Al Balmer
Balmer Consulting
re************************@att.net
Nov 14 '05 #5

P: n/a

"Ebay boy" <ac*****************@yahoo.com> wrote in message
news:a7**************************@posting.google.c om...
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.
Nov 14 '05 #6

P: n/a
>Subject: need help with c compiler
From: ac*****************@yahoo.com (Ebay boy)
Date: 1/8/04 1:26 PM US Mountain Standard Time
Message-id: <a7**************************@posting.google.com >

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.

Nov 14 '05 #7

P: n/a
A123b456c wrote:

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++,


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
--
My email address is valid, but changes periodically.
To contact me please use the address from a recent posting.
Nov 14 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.