delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/10/20:15:19

From: "M. Schulter" <mschulter AT value DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: some help with djgpp please...
Date: 11 Jan 1998 00:57:52 GMT
Organization: Value Net Internetwork Services Inc.
Lines: 54
Message-ID: <6995eg$jq5$1@vnetnews.value.net>
References: <01bd1d7c$cdb6c760$4f8462cf AT rihqdcee>
NNTP-Posting-Host: value.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

John Doe <treeman AT goodnet DOT com> wrote:
: hello, I am new to djgpp. I need to know some stuff. I don't know C or C++,
: but I am able to learn them very quickly if that is what it takes. I have
: proggramed in pascal (turbo) for a while. My questions are as follows:
: 	1. Why when sometimes I find some C code in a book, it doesn't work in
: djgpp when I attempt to compile it.

Apaart from possible typographical errors in entering code from a book --
and I've done this myself <grin> -- one explanation is that there's of C
code out there that is not ANSI C and in some cases can be just
about guaranteed _not_ to work on all but one or a few compilers.

If in doubt, posting a _brief_ example of code that doesn't work would be
one way to find out in a specific case.

: 	2. Is djgpp truely C and C++?

Yes, it's ANSI C -- and an implementation of C++ in today's somewhat
unsettled state (for example, the exception handling, whatever that is,
still has some known problems).

Ironically, the reason that people sometimes get the idea that djgpp C is
somehow "strange" is that other compilers such as Borland, for example,
may support all kinds of nonstandard things that users tend to assume are
"standard C."

Of course, djgpp and other implementations of gcc (the GNU C compiler)
also support some additional features like the long long int (64-bit
integers).

: 	3. Any books I should buy that will get me started on my way???

People will have various recommendations here, but _The C Programming
Language, Second Edition_ by Brian Kernighan and Dennis Ritchie (1988) is
one of the most authoritative guides, and covers ANSI C. These two people
developed the original language, documented in the first edition of this
book, and then documented the updated language as codified in the ANSI
standard.

: 	4.If it is nessary to print out the infomation files, i have read 
: the faq,
: but I still am wondering how in the name of bob do I print them out??? I
: mean, I learn buy reading, trial and error. Not buy guessing... :(

Personally I suspect that most DJGPP users, like me, don't print out info
files, but simply read them online with the info reader. It's a great
hypertext information system, designed precisely to help you learn by
reading as well as some trial and error.

Most respectfully,

Margo Schulter
mschulter AT value DOT net

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019