delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/20/15:23:26

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: <022101c2ef1e$83814660$dd5c893e@pomello>
From: "Max Bowsher" <maxb AT ukf DOT net>
To: "Tron Thomas" <tron DOT thomas AT verizon DOT net>, <cygwin AT cygwin DOT com>
References: <3E7A0A1F DOT 3010007 AT verizon DOT net>
Subject: Re: Invalid compiler error
Date: Thu, 20 Mar 2003 20:23:00 -0000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

Tron Thomas wrote:
> I wrote a simple program to test an open source library I am planning to
> use in a development project.  I want the project to be supported on
> different compilers, including the GCC compiler included with Cygwin.  I
> have been able to successfully build my test application using the
> Micrsoft and Borland compilers.  When I try to build the program with
> the Cygwin compiler, I get a compiler error related to a header file I'm
> including from the library.
>
> Here is the error message I get:
>
> #if with no expression
>
> This is the line of code that is apparently causing the problem:
>
> #elif _WIN32
>
> I don't see why this should be causing a problem especially when the
> other compilers build without any problems.  I use -DWIN32 in the
> command line arguments I used when I build the application.

Hmm. Is #elif a valid directive for gcc? I don't know. You could always
rewrite like:

#if FOO

#else
#if BAR

#endif
#endif

Max.


--
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/

- Raw text -


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