delorie.com/archives/browse.cgi | search |
Message-ID: | <3A6B393A.9B4068E9@earthlink.net> |
From: | Martin Ambuhl <mambuhl AT earthlink DOT net> |
X-Mailer: | Mozilla 4.76 [en]C-CCK-MCD (Win95; U) |
X-Accept-Language: | en,zh-CN,fr,de-CH,ru |
MIME-Version: | 1.0 |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Compilation Error - DJGPP - Version 2.02 |
References: | <000701c083dd$7f5100c0$16b701d5 AT barker> |
Lines: | 30 |
Date: | Sun, 21 Jan 2001 19:31:46 GMT |
NNTP-Posting-Host: | 165.247.30.85 |
X-Complaints-To: | abuse AT earthlink DOT net |
X-Trace: | newsread2.prod.itd.earthlink.net 980105506 165.247.30.85 (Sun, 21 Jan 2001 11:31:46 PST) |
NNTP-Posting-Date: | Sun, 21 Jan 2001 11:31:46 PST |
Organization: | EarthLink Inc. -- http://www.EarthLink.net |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
> Lee Barker wrote: > > The following OR statement doesn't compile: Yes it does. > > #include <stdio.h> > > main() > { > if (2 == 2 || 2 == 1) > printf("hello\n"); > > } You could try making it legal by supplying the return type for main (int, required explicit in C99) and supplying the return value (return 0; required in C89). GCC requires these only at the strictest diagnostic settings however, so that is unlikely to be your problem. > > > Having paid £17.95 for CD ROM and book, i'm somewhat speechless!!! > The serial number of my product is 195146, purchased at PC World, Beckton, > London, England. Perhaps installing it correctly or downloading the current versions -- which are free, BTW -- will solve your problem.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |