|
you dont have to copy it to some directory. If it exists somewhere on your file system and you know where then simply use the -I compiler flag when you do the compile, so lets c it is in /tmp, then you compile as
cc -o outfile sourcefiles -I/tmp
The advantage of this is that pcap may be using other .h files and if pcap is some package library then logically the other .h files should reside in the same directory as pcap and this referencing them will be easy. else if you manage to include pcap.h and pcap uses say nocap.h the you ll get an error that you cant find nocap. so using the -I flag would help resolve such recursive errors.
btw what is the pcap.h file
__________________
War doesnt determine who is right, it determines who is left
|