-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
%option c++ is not compatible with %option noyywrap - linker error: multiple definition #70
Comments
@ledaniel2 I don't see implementation of the yyFlexLexer::yywrap in the header file winflexbison/flex/src/FlexLexer.h Line 145 in 8063e9b
Why you get a link error? How to reproduce your issue? |
The definition is in the generated header and implementation file, admittedly the problem goes away if lexer_bug.l: %option c++ noyywrap outfile="ScannerX.cpp" header="ScannerX.hpp"
%%
. return 0; main.c: #include "ScannerX.hpp"
int main() {
FlexLexer *lex = new yyFlexLexer;
lex->yylex();
}
Both So to clarify, it's all of |
I've added The correct fix could be done in the upstream project. |
@ledaniel2 please try this package https://ci.appveyor.com/api/buildjobs/5cibc2240rafovcs/artifacts/build%2Fwin_flex_bison-dev-2019-Win32-Release.zip |
@lexxmark Thanks for that, I can confirm that it works with the test program here, also with my other project. I'm happy for this issue to be closed here, however what a more correct fix for upstream would be I don't know. I'll continue to watch. |
related to westes/flex#472
The text was updated successfully, but these errors were encountered: