X-Originating-IP: [200.42.80.103] From: "Norberto Alfredo Bensa" To: References: <000701c083dd$7f5100c0$16b701d5 AT barker> Subject: Re: Compilation Error - DJGPP - Version 2.02 Date: Sun, 21 Jan 2001 18:16:42 -0300 Organization: nBens@ Computers X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: X-OriginalArrivalTime: 21 Jan 2001 21:16:22.0336 (UTC) FILETIME=[6781DC00:01C083EF] Reply-To: djgpp AT delorie DOT com Hello, of course it doesn't "compile" (you really meant: code is not generated, don't you?) 'if (2==2||2==1)' is alway true, and the compiler only emits the printf call... try turning off optimizations and you'll see... Best regards, Norberto ----- Original Message ----- From: "Lee Barker" To: Sent: Sunday, January 21, 2001 4:08 PM Subject: Compilation Error - DJGPP - Version 2.02 The following OR statement doesn't compile: #include main() { if (2 == 2 || 2 == 1) printf("hello\n"); } 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. Mr Lee Barker barkerlee AT talk21 DOT com