Re: [Flex-help] Flex and 64-bit compiling
flex is a tool for generating scanners
Brought to you by:
wlestes
From: Daryl L. <da...@da...> - 2010-06-17 20:32:44
|
Bison 2.4.1 Flex 2.5.4 Both are, of course, the Windows versions. They are driven from Visual Studio's "custom build rules" facility and the command line for my events.l file is "flex.exe -olex.events.c -Pevents -Cem". On 6/17/2010 1:57 PM, Aaron Stone wrote: > Please share the flex and bison versions you're working with, as that > will help narrow down what code might need to be updated. > > Aaron > > > On Thu, Jun 17, 2010 at 10:08 AM, Daryl Lee <da...@da...> wrote: >> I have integrated Flex and Bison into a Windows MFC app using Visual Studio >> 2008 and it works perfectly with a Win32 target. When I build to an x64 >> target, I get two warnings when compiling lex.events.c (generated from >> events.l): >> >> YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]), >> yy_n_chars, num_to_read ); >> warning C4267: '=' : conversion from 'size_t' to 'int', >> possible loss of data >> >> int offset = yy_c_buf_p - yytext_ptr; >> warning C4244: 'initializing' : conversion from '__int64' to 'int', >> possible loss of data >> >> It's not obvious to me that there's anything I can do in the events.l file >> to prevent this, other than to just stifle the warnings with a #pragma >> directive. That is, I can't find any line in the events.c that I can change >> to make the generated code more "correct". Or is there? >> >> -- >> Daryl Lee >> www.daryllee.com >> The unexamined life is not worth living. -- Socrates >> The unlived life is not worth examining. -- Unknown >> >> >> ------------------------------------------------------------------------------ >> ThinkGeek and WIRED's GeekDad team up for the Ultimate >> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >> lucky parental unit. See the prize list and enter to win: >> http://p.sf.net/sfu/thinkgeek-promo >> _______________________________________________ >> Flex-help mailing list >> Fle...@li... >> https://lists.sourceforge.net/lists/listinfo/flex-help >> > > > -- Daryl Lee www.daryllee.com The unexamined life is not worth living. -- Socrates The unlived life is not worth examining. -- Unknown |