Hello

I am trying to build a 64bit version of libungif and I have run into a few
problems.
I converted my solution file to x64 in Visual Studio 2005.
The debug and release versions both build but with a lot of warnings and it
is some of these warnings that are causing me problems.

I am getting several "inconsistent dll linkage" warnings that is causing
these functions not to be found when I try to use libungif to build osg
plugin gif.


1>ReaderWriterGIF.obj : error LNK2019: unresolved external symbol
__imp_DGifCloseFile referenced in function "unsigned char * __cdecl
simage_gif_load(class std::basic_istream<char,struct std::char_traits<char>
> &,int *,int *,int *)" (?simage_gif_load@@[EMAIL PROTECTED]
[EMAIL PROTECTED]@std@@@std@@[EMAIL PROTECTED])

The warnings look like this


1>..\lib\dgif_lib.c(67) : warning C4273: 'DGifOpenFileName' : inconsistent
dll linkage

1> c:\x64brokaw\3rdparty\osg\3rdparty\src\libungif_x64\lib\gif_lib.h(208) :
see previous definition of 'DGifOpenFileName'



the following is in dgif_lib.c

GifFileType *

DGifOpenFileName(const char *FileName) {

int FileHandle;

GifFileType *GifFile;

if ((FileHandle = open(FileName, O_RDONLY

#if defined(__MSDOS__) || defined(_WIN32) || defined(_OPEN_BINARY)

| O_BINARY

#endif /* __MSDOS__ || _OPEN_BINARY */

)) == -1) {

_GifError = D_GIF_ERR_OPEN_FAILED;

return NULL;

}



And....

this is in gif_lib.c

LIBUNGIF_DLL_IMPEXP GifFileType *DGifOpenFileName(const char *GifFileName);

And I get 7 warnings like this for various functions



I am wondering if anybody else has run into similar problems when converting
to x64 version of libungif and maybe if somebody knows what I did wrong and
how to fix it or maybe even a better way to convert to 64 bit.



Thanks

LeRetha
-------------------------------------------------------------------------
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