From ec8daae71004b3c2346bf12b2d74e52ed0815337 Mon Sep 17 00:00:00 2001 From: jfarrell Date: Wed, 19 Mar 2014 09:50:10 -0400 Subject: [PATCH] THRIFT-2386: Thrift refuses to link yylex Client: compiler Patch: Milan Freml Fixes undefined reference to `yylex' due to upstream changes. --- compiler/cpp/src/main.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.17.1