-ll
means to link against Solaris's libl lex library (available in /usr/lib/libl.so
).
(The -l
option takes the name of the library, minus the lib
prefix and the file extension.)
문제
I'm trying to compile a program that there is -ll
flag but gcc can't find. What is the l
after -l
really a library or is this a typo? is hard find information about this on google.Such term is "vague".
해결책
-ll
means to link against Solaris's libl lex library (available in /usr/lib/libl.so
).
(The -l
option takes the name of the library, minus the lib
prefix and the file extension.)
다른 팁
As in my case, flex
by default didn't install libfl
library (using Linux Mint)
So I had to install libfl-dev
library separately
sudo apt install libfl-dev
and include a -lfl
option instead of -ll
in the commandline as in
gcc myfile.c -lfl -o myfile