What do backticked options mean?
문제
I noticed this command:
gcc -Wall `libnet-config --defines` libnet-example-x.c -o libnet-example-x `libnet-config --libs`
What is the meaning of libnet-config --defines
and libnet-config --libs
?
해결책
It is executing a program that generates the necessary gcc arguments to compile an application that uses libnet.
Execute this at the command line and you will see what is going on:
libnet-config --defines
다른 팁
libnet-config
is an executable that will return a list of -D...
options for gcc when called with the argument --defines
and a list of -l...
with the other argument.
제휴하지 않습니다 StackOverflow