Reputation: 91
After compilation of whole source, while linking I get this error:
/x86_64-pc-linux-gnu/bin/ld: read in flex scanner failed
Any pointers what could be going wrong and where to look for it?
Upvotes: 2
Views: 6836
Reputation: 45
My problem was a space after a comma when specifying linker arguments:
-L. -Wl,-T, gcc_arm.ld
resulted in
read in flex scanner failed
To fix, ensure there are no spaces around the commas:
-L. -Wl,-T,gcc_arm.ld
Upvotes: 0
Reputation: 91
Turns out i was passing wrong path to the file in g++ --version_script=worng_path
Upvotes: 3