Re: gtk-- compile fails




On Sat, 19 Sep 1998, Andrew Clausen wrote:
> ----stderr from make-----------------
> main.lo: In function `oct(ios &)':
> /usr/include/g++/iostream.h:269: multiple definition of `oct(ios &)'
> functions.lo:/usr/include/g++/iostream.h:269: first defined here
> pixmap.lo: In function `Connection_impl type_info function':
> /home/gnomecvs/gtk--/gnome--/gnome--/./../pixmap.gen_h(.text+0x0): multiple
> definition of `connect_to_function(Signal0 &, void (*)(void))'
> functions.lo(.text+0x0):/home/gnomecvs/gtk--/gnome--/gnome--/functions.cc:
> first defined here
> collect2: ld returned 1 exit status
> make[3]: *** [libgnomemm.la] Error 1
> make[3]: Leaving directory `/home/gnomecvs/gtk--/gnome--/gnome--'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/gnomecvs/gtk--/gnome--'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/gnomecvs/gtk--'
> make: *** [all-recursive-am] Error 2
> --------------------
> 

Well, that's certainly mystifying. pixmap.h was generated correctly, and
everything compiles, you just get crash and burn at link time. It looks
almost like your linker doesn't understand what to do when the same
template is instantiated in two files. What compiler is this? I have to
say I don't know what would cause the error other than compiler weirdness. 
Maybe someone with more knowledge can help.

Your link line here looks exactly like mine, only I get no errors:

> c++ -shared -Wl,-soname -Wl,libgnomemm.so.1 -o .libs/libgnomemm.so.1.0.1
> gnome--.lo functions.lo about.lo app.lo appbar.lo canvas-ellipse.lo
> canvas-group.lo canvas-image.lo canvas-item.lo canvas-line.lo canvas-rect.lo
> canvas-text.lo canvas-widget.lo canvas.lo color-selector.lo dialog.lo
> icon-list.lo layout.lo main.lo pixmap.lo  -L/usr/local/lib -L/usr/lib
> -L/usr/X11R6/lib -lgnomeui -lgdk_imlib -ljpeg -ltiff -lungif -lpng -lz -lSM
> -lICE -lgtk-1.1 -lgdk-1.1 -lgmodule-1.1 -lXext -lX11 -lm -lgnome
> -lgnomesupport -ldb -lglib-1.1 -ldl -lc
> 

Sorry I'm not more helpful...

Havoc



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]