delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/02/06/09:48:28

From: benny AT crocodial DOT de (Benjamin Riefenstahl)
Subject: Re: flex++
6 Feb 1998 09:48:28 -0800 :
Message-ID: <34DB1A35.F6A0A9FB.cygnus.gnu-win32@crocodial.de>
References: <34DA77E0 DOT E47D6079 AT krdl DOT org DOT sg>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

sumeet singh wrote:
>     I have problems using flex++ (flex that generates C++ code) with
> VC++ 5.0 . The c++ file that flex++ generates, includes <unistd.h> which
> defines some functions already defined in some other header files of
> VC++ and hence doesn't compile.

? Where does that unistd.h come from? unistd.h is a Unix system header.
It doesn't come with VC++ so you should not have that file in your
include files search path in the first place.

To work with the flex++ code you could a) replace the #include in the
code with the headers that define the functionality in VC++ or b) define
your own unistd.h header that sub-includes these same headers. All this
on the assumption that VC++ has the functions that you need in it's RTL.
======================================
Benjamin Riefenstahl (benny AT crocodial DOT de)
Crocodial Communications EntwicklungsGmbH
Ophagen 16a, D-20257 Hamburg, Germany
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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