> I have the following
> ...
> Should I have something different

In this way you only have a series of #ifdef's in the header file gif_lib.h. 
Since none of the #ifdef's relates to a defined value, you end up with the 
default one, i.e. LIBUNGIF_DLL_IMPEXP  expands to __DLL_IMPORT__, which in 
turn expands to __declspec(dllimport). This is the attribute for importing 
variabales or functions from a DLL. However, you are building a DLL. 
Therefore you should define BUILD_LIBUNGIF_DLL  in the compilation flags of 
your project, so that LIBUNGIF_DLL_IMPEXP  expands to __DLL_EXPORT__, which 
in turn expands to __declspec(dllexport).
When building an application that uses libungif, then you should omit the 
definition of BUILD_LIBUNGIF_DLL  , and define either USE_LIBUNGIF_DLL or 
define none of these two.

Some more information on this can be found at MSDN:
http://msdn2.microsoft.com/en-us/library/9h658af8(VS.80).aspx

Kees Zeelenberg


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users

Reply via email to