Wireshark-dev: Re: [Wireshark-dev] [Wireshark plugin build]: Error while compiling plugin

From: Gerald Combs <gerald@xxxxxxxxxxxxx>
Date: Fri, 19 Jun 2009 13:37:51 -0700
shreejith bl wrote:
> I copied config.h.win32 to config.h in c:\wireshark.
> Now I am getting the below error.
> 
> I can see in config.h declarations which the compiler is not
> understanding like,
> @HAVE_LIBPCAP@
> @HAVE_PCAP_BREAKLOOP@
> @HAVE_PCAP_FINDALLDEVS@
> @HAVE_PCAP_DATALINK_NAME_TO_VAL@
> @HAVE_PCAP_DATALINK_VAL_TO_NAME@
> @WPCAP_CONSTIFIED@
> @HAVE_LIBWIRESHARKDLL@

Don't do that. Makefile.nmake uses 'sed' to read config.h.win32, convert
all of those @-quoted names to their correct values, and write config.h.
What does config.h look like after you run the following?

rm config.h
nmake -f makefile.nmake config.h