This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Visual C++ and flex library


Hello David,

> 	I am trying to use your excellent flex scanner in my Visual C++
> project.  I want to wrapper a COM Interface around the 
> generated lex.yy.c file ,

This is an interesting idea. I wanted to do something similar about two
years ago, but didn't have enough time. Now the sources are gone, so I can't
tell you what I did exactly

> however I get errors when I don't link to the flex 
> library (libfl.a).

If you look at the sources to libfl.a you will see that it provides only two
small functions: a main() function which just returns yylex(), and a
yywrap() function which returns 1.
So, provide your own yywrap() function.

Karsten


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]