Quote:
collect2: ld returned 1 exit status
|
Says that the error messages come from "ld", the linker.
Most likely, you've forgot to include some libraries needed to compile the lex code.
When a library is missing, functioncalls to functions from the library can give you "undefined reference" errors.
I'm not sure which you need exactly, so I'd recommend to search around for tutorials and stuff.