delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-ID: | <3E7A3783.7010507@verizon.net> |
Date: | Thu, 20 Mar 2003 13:49:55 -0800 |
From: | Tron Thomas <tron DOT thomas AT verizon DOT net> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 |
X-Accept-Language: | en-us, en |
MIME-Version: | 1.0 |
To: | Robert Collins <rbcollins AT cygwin DOT com> |
CC: | Max Bowsher <maxb AT ukf DOT net>, cygwin AT cygwin DOT com |
Subject: | Re: Invalid compiler error |
References: | <3E7A0A1F DOT 3010007 AT verizon DOT net> <022101c2ef1e$83814660$dd5c893e AT pomello> <3E7A2648 DOT 7070802 AT verizon DOT net> <029101c2ef21$c3788550$dd5c893e AT pomello> <3E7A2C34 DOT 7060302 AT verizon DOT net> <1048194278 DOT 22179 DOT 12 DOT camel AT localhost> |
X-Authentication-Info: | Submitted using SMTP AUTH at out004.verizon.net from [4.65.8.163] at Thu, 20 Mar 2003 15:49:55 -0600 |
I made the change you suggested and that fixed the problem. I will let the implementor of the library know about this, as its obviously a bug. I have never encountered this kind of syntax before where the #elif is used without a defined, so I didn't know how valid it was. It seems in some circumstances it might work, and in others it won't. Probably best to avoid it since it is unreliable. Thank you. Robert Collins wrote: >On Fri, 2003-03-21 at 08:01, Tron Thomas wrote: > > >>I'm sorry. I misread what you wrote. I thought you were suggesting >>that I try the #elif directive in simple coding example to see if the >>compiler would accept it. This is was I used: >> >> > > > >>This program compiles just fine, and if I define the proper value, it >>print the expected text. So it looks like the #elif directive, in >>general, is compatable with the Cygwin compiler. It doesn't explain why >>the error message still occurs. I suppose I could try changing the code >>to what you actually suggested and see if that works. >> >> > >IIRC the elif directive requires the define to be, well, defined. > >the error you got suggests to me that >#elif defined(_WIN32) > >would be a better test. > >Rob > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |