Wireshark-dev: Re: [Wireshark-dev] WS_DLL_PUBLIC only works for files with registered protocols
From: Guy Harris <[email protected]>
Date: Fri, 3 May 2013 19:09:56 -0700
On May 3, 2013, at 6:17 PM, Guy Harris <[email protected]> wrote:

> You're putting WS_DLL_PUBLIC in front of the *declaration* of your functions in the *header files* that declare them, *not* in front of the *definitions* of your functions in the *source files* that contain the source code for them, right?
> 
> If not, do so.  That's how you're supposed to use WS_DLL_PUBLIC.

Also:

	make sure the source file that defines the function includes the header file that declares it;

	after *any* change to header files, do a "nmake -f makefile.nmake clean", as nmake and the C compiler do *not* do any dependency tracking (you might want to do an "nmake -f makefile.nmake clean" before your next build).