delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/03/09:45:42

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
Message-ID: <20000803134418.18090.qmail@web111.yahoomail.com>
Date: Thu, 3 Aug 2000 06:44:18 -0700 (PDT)
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Subject: Re: stdin and stdout
To: Lionel Ains <lains AT caramail DOT com>, cygwin AT sources DOT redhat DOT com
MIME-Version: 1.0

--- Lionel Ains <lains AT caramail DOT com> wrote:
> Hi all,
> 
> 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)
> 

The code your compiling has a bug.  You need to modify the code such that
initialization of *yyin and *yyout happens at runtime and not comile time.

Cheers,

=====
---
   Earnie Boyd: <mailto:earnie_boyd AT yahoo DOT com>
            __Cygwin: POSIX on Windows__
Cygwin Newbies: <http://gw32.freeyellow.com/>
           __Minimalist GNU for Windows__
  Mingw32 List: <http://www.egroups.com/group/mingw32/>
    Mingw Home: <http://www.mingw.org/>

__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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