The issue on Puhti was that it was missing a static flex library which would have provided the function yywrap. Fixed by removing the static library dependency and adding option noyywrap to the lexer generator file
This commit is contained in:
@@ -8,4 +8,3 @@ add_flex_bison_dependency(acc_lexer acc_parser)
|
||||
|
||||
add_executable(acc code_generator.c ${BISON_acc_parser_OUTPUTS} ${FLEX_acc_lexer_OUTPUTS})
|
||||
target_include_directories(acc PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
|
||||
target_link_libraries(acc ${FLEX_LIBRARIES})
|
||||
|
@@ -1,4 +1,5 @@
|
||||
%option yylineno
|
||||
%option noyywrap
|
||||
|
||||
D [0-9]
|
||||
L [a-zA-Z_]
|
||||
|
Reference in New Issue
Block a user