[Mono-devel-list] Problems compiling libgdiplus-1.1.5
mvorkosigan at gmail.com
Wed Mar 30 04:54:52 EST 2005
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/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:
gdip_save_gif_image_to_file (char *filename, GpImage *image);
but defined in the implementation source as:
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
The trivial diff is attached.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the Mono-devel-list