www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/01/21/16:16:39

X-Originating-IP: [200.42.80.103]
From: "Norberto Alfredo Bensa" <ceo AT nbensacomputers DOT com>
To: <djgpp AT delorie DOT com>
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: <OE33pqhNPPzQT456UnH00000395@hotmail.com>
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" <barkerlee AT talk21 DOT com>
To: <djgpp AT delorie DOT com>
Sent: Sunday, January 21, 2001 4:08 PM
Subject: Compilation Error - DJGPP - Version 2.02


The following OR statement doesn't compile:

#include <stdio.h>

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



- Raw text -


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