[Mono-devel-list] Problems compiling libgdiplus-1.1.5

Miquel Ramírez mvorkosigan at gmail.com
Wed Mar 30 04:54:52 EST 2005


Hi,

I have just came across following problem while trying to compile
libdgiplus-1.1.5 with GIF support disabled:

 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libpixman/src -I../cairo/src
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -g -O2
-pthread -MT gifcodec.lo -MD -MP -MF .deps/gifcodec.Tpo -c gifcodec.c 
-fPIC -DPIC -o .libs/gifcodec.o
gifcodec.c:515: error: conflicting types for `gdip_save_gif_image_to_file'
gifcodec.h:24: error: previous declaration of `gdip_save_gif_image_to_file'

Checking the code I saw that the function was declared as:

GpStatus 
gdip_save_gif_image_to_file (char *filename, GpImage *image);


but defined in the implementation source as:

GpStatus 
gdip_save_gif_image_to_file (unsigned char *filename, GpImage *image)

I first thought that gifcodec.c was being generated by autotools
depending on the result of the tests on libungif, but I was not able
to find any gifcodec.c.in or similar, so I suppose it is safe to just
change the definition so that it matches the declaration found in the
header.

The trivial diff is attached.

Miguel.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gifcodec.c.diff
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050330/f6e5afef/attachment.pl 


More information about the Mono-devel-list mailing list