hiking90 / aidl-cpp

AIDL compiler for C++ on Linux Desktop
Apache License 2.0
11 stars 11 forks source link

error: no member named 'parser' in namespace 'yy'; did you mean 'Parser'? #1

Closed wishma2013 closed 6 years ago

wishma2013 commented 6 years ago

When I run "make" on commandline, the error occured.The whole stack like below:

Scanning dependencies of target aidl-cpp [ 4%] Building CXX object CMakeFiles/aidl-cpp.dir/aidl.cpp.o [ 8%] Building CXX object CMakeFiles/aidl-cpp.dir/aidl_language.cpp.o In file included from /path/to/aidl-cpp/aidl_language.cpp:12: aidl_language_y.yy:8:11: error: no member named 'parser' in namespace 'yy'; did you mean 'Parser'? int yylex(yy::parser::semantic_type , yy::parser::location_type , void ); ^~~~~~ Parser /path/to/aidl-cpp/./aidl_language.h:382:7: note: 'Parser' declared here class Parser { ^ In file included from /path/to/aidl-cpp/aidl_language.cpp:12: aidl_language_y.yy:8:40: error: no member named 'parser' in namespace 'yy'; did you mean 'Parser'? int yylex(yy::parser::semantic_type , yy::parser::location_type , void ); ^~~~~~ Parser /path/to/aidl-cpp/./aidl_language.h:382:7: note: 'Parser' declared here class Parser { ^ In file included from /path/to/aidl-cpp/aidl_language.cpp:12: aidl_language_y.yy:8:23: error: no type named 'semantic_type' in 'Parser' int yylex(yy::parser::semantic_type , yy::parser::location_type , void *);


aidl_language_y.yy:8:52: error: no type named 'location_type' in 'Parser'
int yylex(yy::parser::semantic_type *, yy::parser::location_type *, void *);
~~~~~~~~~~~~^
4 errors generated.

And the version of related tools list below:

bison v3.0.5 flex v2.6.4 cmake 3.11.2 GNU Make 3.81 Apple LLVM version 9.0.0 (clang-900.0.39.2)

Where is wrong?