* compile error with gtk-1.2.7
@ 2000-03-12 10:43 John Fremlin
2000-03-12 11:43 ` Marius Vollmer
0 siblings, 1 reply; 2+ messages in thread
From: John Fremlin @ 2000-03-12 10:43 UTC (permalink / raw)
To: guile-gtk
I get
$ make
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -I/usr/local/include -I/usr/X11R6/include -I/usr/local/lib/glib/include -I/usr/local/include -O6 -march=k6 -pipe -c guile-gtk.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -I/usr/local/include -I/usr/X11R6/include -I/usr/local/lib/glib/include -I/usr/local/include -O6 -march=k6 -pipe -c -fPIC -DPIC guile-gtk.c -o guile-gtk.lo
In file included from guile-gtk.c:28:
guile-gtk.h:235: conflicting types for `gdk_color_copy'
/usr/local/include/gdk/gdk.h:556: previous declaration of `gdk_color_copy'
make: *** [guile-gtk.lo] Error 1
I commented out the def in guile-gtk.h, and everything seemed to work.
--
http://altern.org/vii
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: compile error with gtk-1.2.7
2000-03-12 10:43 compile error with gtk-1.2.7 John Fremlin
@ 2000-03-12 11:43 ` Marius Vollmer
0 siblings, 0 replies; 2+ messages in thread
From: Marius Vollmer @ 2000-03-12 11:43 UTC (permalink / raw)
To: John Fremlin; +Cc: guile-gtk
John Fremlin <vii@altern.org> writes:
> guile-gtk.h:235: conflicting types for `gdk_color_copy'
> /usr/local/include/gdk/gdk.h:556: previous declaration of `gdk_color_copy'
Current CVS versions of guile-gtk should have this code in
guile-gtk.h:
#ifndef HAVE_GDK_COLOR_COPY
GdkColor* gdk_color_copy (GdkColor *);
void gdk_color_free (GdkColor *);
#endif
Thus, when Gtk+ contains gdk_color_copy itself, guile-gtk should not
declare its own prototype. This is a fairly recent change, from
2000-02-27.
What version of guile-gtk are you using?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-03-12 11:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-03-12 10:43 compile error with gtk-1.2.7 John Fremlin
2000-03-12 11:43 ` Marius Vollmer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).