Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <3E7A0A1F.3010007@verizon.net>
Date: Thu, 20 Mar 2003 10:36:15 -0800
From: Tron Thomas <tron.thomas@verizon.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: cygwin@cygwin.com
Subject: Invalid compiler error
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Authentication-Info: Submitted using SMTP AUTH at out004.verizon.net from [4.65.8.163] at Thu, 20 Mar 2003 12:36:15 -0600

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.

Has anyone seen the type of problem before (I search the mailing 
archives and didn't find anything)?
Can anyone offer any suggestions about how to resolve this issue?



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

