E
E
egorggegor2021-02-24 17:39:54
GCC
egorggegor, 2021-02-24 17:39:54

What do the GCC flags mean?

Hello.

Have a follow up question, what do the following flags mean when compiling?
gcc -o main main.o -lxdo
Some of the -lxdo flags I understood, but others not so much. Maybe someone knows how they are decrypted.

Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nicholas, 2021-02-24
@egorggegor

-o (output) - the name of the output file
-l (library) - the name of the library to link to (-lxdo means "use the libxdo library").

A
Alexander Ananiev, 2021-02-24
@SaNNy32

https://man7.org/linux/man-pages/man1/gcc.1.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question