Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is -ll gcc's flag?

I'm trying to compile a program that there is -ll flag but gcc can't find. What is the l after -lreally a library or is this a typo? is hard find information about this on google.Such term is "vague".

like image 232
Jack Avatar asked Mar 31 '13 17:03

Jack


People also ask

What are the purpose of the gcc flags?

Turning on optimization flags makes the compiler attempt to improve the performance and/or code size at the expense of compilation time and possibly the ability to debug the program. The compiler performs optimization based on the knowledge it has of the program.

What is flag in compiler?

Compiler flags are options you give to gcc when it compiles a file or set of files. You may provide these directly on the command line, or your development tools may generate them when they invoke gcc. This section describes just the flags that are specific to Objective-C.

What is f flag in gcc?

'f' stands for 'flag'. -fpic # flag to set position independent code -fno-builtin # don't recognize build in functions ... The technical definition is that 'f' defines "Control the interface conventions used in code generation".

What is Wall flag in gcc?

gcc -Wall enables all compiler's warning messages. This option should always be used, in order to generate better code.


1 Answers

-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.)

like image 163
Frédéric Hamidi Avatar answered Sep 18 '22 01:09

Frédéric Hamidi