how to give path of libpcap to gcc ?

i m not getting how to give the path of libpcap library in gcc , i m not able to compile a program without this …
plz help!!!:\

Add -lpcap to the link command.