Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

need h files...

10 views
Skip to first unread message

Tom

unread,
Oct 28, 1998, 3:00:00 AM10/28/98
to
hi,
ok... so i got a cheap C compiler of a friend, and a book (C programming
for dummies) in the hope that I will try to come to grasps with the C
language.
The problem is that the compiler only comes with like 3 or 4 h files,
and this means that half the programs in the book that need files such
as dos.h, time.h, stdlib.h can't and dont work.
I have tried taking the h files that i got with borland C++ on the cover
of a mag,and putting them into the compiler, but it doesn't work... not
to my surprisement, as nothing seems to be working at the mo. :o(
What i would like to know is ...is there any place that I can download
these h files ?
is it possible to get the ones that i got from Bor. C++ and use them in
some way ? is there anything else i can do ?
thanx for ANY advice, and helping a newbie get on his way :o)

Tom

"I'm desperately trying to figure out why kamikaze pilots wore helmets."

- Dave Edison

tst...@my-dejanews.com

unread,
Oct 29, 1998, 3:00:00 AM10/29/98
to
In article <36376F...@mcintosh.globalnet.co.uk>,

mcin...@globalnet.co.uk wrote:
> hi,
> ok... so i got a cheap C compiler of a friend, and a book (C programming
> for dummies) in the hope that I will try to come to grasps with the C
> language.

Download the *free* compiler from http://www.delorie.com.
Throw the book away and get "The C Programming Language" by Kernighan &
Ritchie, "Standard C A Reference" by PJPlauger & Download the C-FAQ at
http://www.eskimo.com/~scs/C-faq

> The problem is that the compiler only comes with like 3 or 4 h files,
> and this means that half the programs in the book that need files such
> as dos.h, time.h, stdlib.h can't and dont work.

Please note that dos.h is *not* a standard C header, avoid anybook that uses
it in its examples (ie any book by Herbert Schildt)

> I have tried taking the h files that i got with borland C++ on the cover
> of a mag,and putting them into the compiler, but it doesn't work... not
> to my surprisement, as nothing seems to be working at the mo. :o(
> What i would like to know is ...is there any place that I can download
> these h files ?

You can't just create/copy .h files, they only specify the interface to
pre-compiled codes stored in library files.

> is it possible to get the ones that i got from Bor. C++ and use them in
> some way ? is there anything else i can do ?
> thanx for ANY advice, and helping a newbie get on his way :o)
>
> Tom
>
> "I'm desperately trying to figure out why kamikaze pilots wore helmets."
>
> - Dave Edison
>


--
Tristan Styles

Failure is not an option
It is Standard Operating Procedure

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own

Ari Lukumies

unread,
Oct 29, 1998, 3:00:00 AM10/29/98
to
Tom wrote:
>
> hi,
> ok... so i got a cheap C compiler of a friend, and a book (C programming
> for dummies) in the hope that I will try to come to grasps with the C
> language.
> The problem is that the compiler only comes with like 3 or 4 h files,
> and this means that half the programs in the book that need files such
> as dos.h, time.h, stdlib.h can't and dont work.
> I have tried taking the h files that i got with borland C++ on the cover
> of a mag,and putting them into the compiler, but it doesn't work... not
> to my surprisement, as nothing seems to be working at the mo. :o(
> What i would like to know is ...is there any place that I can download
> these h files ?
> is it possible to get the ones that i got from Bor. C++ and use them in
> some way ? is there anything else i can do ?
> thanx for ANY advice, and helping a newbie get on his way :o)

Hey there,

The header files that come with a compiler are not generally
interchangeable with another compiler's implementation, as they tend to
have some dependencies on the underlying construction of the standard
libraries that also need to be linked into your programs in order for
them to work in the first place, so your best bet is to get a working
compiler with a working set of both the header files and libraried,
along with the necessary compilers, linkers etc, or, instead, you could
use your borland compiler with its libraries, headers and such and
compile/link the code in the book. (Gosh, was that ONE sentence?)

AriL
--
Humans may send email (if absolutely necessary) to the
obvious non-spam address.

0 new messages