delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
From: | Chris Faylor <cgf AT cygnus DOT com> |
Date: | Thu, 3 Aug 2000 09:34:57 -0400 |
To: | cygwin AT sources DOT redhat DOT com |
Subject: | Re: stdin and stdout |
Message-ID: | <20000803093457.A11521@cygnus.com> |
Reply-To: | cygwin AT sources DOT redhat DOT com |
Mail-Followup-To: | cygwin AT sources DOT redhat DOT com |
References: | <965313198009713 AT caramail DOT com> |
Mime-Version: | 1.0 |
User-Agent: | Mutt/1.3.6i |
In-Reply-To: | <965313198009713@caramail.com>; from lains@caramail.com on Thu, Aug 03, 2000 at 03:39:02PM +0100 |
On Thu, Aug 03, 2000 at 03:39:02PM +0100, Lionel Ains wrote: >I'm trying to compile the Link Grammar Parser 3.0 (from http://bobo.link.cs.cmu.edu/) with Cygwin and >I have a compilation error on one source file: >I have an "pp_lexer.c:324 initializer element is not constant" error from gcc. >Has someone experienced similar problems? > >Note: stdin and stdout are defined this way in Cygwin's stdio.h: >#define stdin (_impure_ptr->_stdin) >#define stdout (_impure_ptr->_stdout) >And the part of the code which fails to compile is: >FILE *yyin = stdin, *yyout = stdout; > >I'm using Cygwin v1.1, with gcc v2.95.2 19991024 (release-2) You've identified the correct definitions of stdin and stdout. There is no workaround for making these two defines into constants. You'll have to modify the code that assumes that they are constant, unfortunately. cgf -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |