compilation - libpcap compiling as external library -
i'm making project requires libpcap library, downloaded library official website (libpcap-1.7.2.tar.gz) , want compile , project on unix server, not allowed install library there (school server) , cannot run gcc root.
what command shall use? or possible? can't find info. (.. aim run binary on linux os (with root permissions) without need of installing lib.)
i tried:
gcc -wall test.c -lpcap -ilib/libpcap-1.7.2
but getting error:
lib/libpcap-1.7.2/pcap.h:43:23: fatal error: pcap/pcap.h: no such file or directory #include <pcap/pcap.h> ^
Comments
Post a Comment