문제

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top