Subject: Re: flex++
From: [email-masked] (Benjamin Riefenstahl)

6 Feb 1998 09:48:28 -0800
Message-ID: <[email-masked]>
References: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: [email-masked]

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 ([email-masked])
Crocodial Communications EntwicklungsGmbH
Ophagen 16a, D-20257 Hamburg, Germany
-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".