Is it posible to compile Flex/Lex on a M1 Mac

Viewed 19

In my compilers class we are writting Flex/Lex code. When I compiled the .l file and tried to compile the resultant lex.yy.c file with gcc, I got the following error:

Undefined symbols for architecture arm64:
  "_yywrap", referenced from:
      _yylex in lex-fb85c9.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Does is posible to compile it in a Apple Silicon (M1) Mac, at least in a Linux VM?

0 Answers
Related