From: jfarrell Date: Wed, 19 Mar 2014 13:50:10 +0000 (-0400) Subject: THRIFT-2386: Thrift refuses to link yylex X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=ec8daae71004b3c2346bf12b2d74e52ed0815337;p=common%2Fthrift.git THRIFT-2386: Thrift refuses to link yylex Client: compiler Patch: Milan Freml Fixes undefined reference to `yylex' due to upstream changes. --- diff --git a/compiler/cpp/src/main.h b/compiler/cpp/src/main.h index f737e3fe..9b0f3f32 100644 --- a/compiler/cpp/src/main.h +++ b/compiler/cpp/src/main.h @@ -29,7 +29,9 @@ * Defined in the flex library */ -int yylex(void); +extern "C" { + int yylex(void); +} int yyparse(void);