help-flex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: filenames in #line directives


From: Kohsuke Kawaguchi
Subject: Re: filenames in #line directives
Date: Sun, 21 Apr 2002 21:57:20 -0400

> Can you provide an example filename that confuses VC++?
> 
> The reason I ask is because I thought VC++ could handle "/" characters in
> filenames. Several years ago, before the days of cygwin, I worked on a VC++
> project that required a flex scanner. I generated the scanner on a Solaris x86
> box, then copied the scanner to the local VC++ project directory. I did this
> countless times and I never once had problems with the #line directives.
> (Although, I did have to create an empty file, named, "unistd.h", on the
> winblows box just to make the scanner happy -- but this bug has been fixed!)

If I recall correctly, cygwin version of flex++ generates #line with 
Unix-style file names.

#line "/cygdrive/c/...."

which VC++ doesn't recognize. It does compile, but it doesn't allow me
to use F4 to jump to error locations, etc.



> PS -  I've CC'd the flex mailing list, address@hidden, where other flex/VC++
> users may be of help.  If you think of any other flex problems, please send
> them to this list.

No, I don't think this is a "problem". This is just a consequence of
emulating Unix on Windows.


regards,
----------------------
Kohsuke Kawaguchi
E-Mail: address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]