Re: libungif 64bit version

"Kees Zeelenberg" <[email protected]>
Newsgroups gmane.comp.windows.gnu.user
Message-ID <04eb01c8a4b6$db3759a0$4701a8c0@gamma>
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.