intel / hyperscan

High-performance regular expression matching library
https://www.hyperscan.io
Other
4.78k stars 710 forks source link

compile error occured when compile with option -DDEBUG_OUTPUT=TRUE -DOPTIMISE=FALSE #95

Open mengguer opened 6 years ago

mengguer commented 6 years ago

/home/admin/hyperscan-master/src/compiler/compiler.cpp: In function 'void ue2::dumpExpression(const ue2::ParsedExpression&, const char, const ue2::Grey&)': /home/admin/hyperscan-master/src/compiler/compiler.cpp:198:44: error: 'dumpTree' was not declared in this scope dumpTree(debug_tree, pe.component.get()); ^ In file included from /home/admin/hyperscan-master/src/compiler/compiler.cpp:51:0: /home/admin/hyperscan-master/src/parser/position_dump.h: In instantiation of 'std::string ue2::dumpPositions(const Iterator&, const Iterator&) [with Iterator = __gnu_cxx::__normal_iterator<ue2::PositionInfo, std::vector >; std::string = std::basic_string]': /home/admin/hyperscan-master/src/compiler/compiler.cpp:410:5: required from here /home/admin/hyperscan-master/src/parser/position_dump.h:52:21: error: 'dump' was not declared in this scope dump(oss, *i); ^ gmake[2]: [CMakeFiles/hs_compile.dir/src/compiler/compiler.cpp.o] Error 1 gmake[1]: [CMakeFiles/hs_compile.dir/all] Error 2 gmake: *** [all] Error 2

xiangwang1 commented 6 years ago

You need to define debug build type in order to see debug output by: cmake .. -DCMAKE_BUILD_TYPE=Debug -DDEBUG_OUTPUT=1