Ethereal-dev: Re: Patches was Re: [ethereal-dev] duplicate menu items

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxx>
Date: Tue, 4 Apr 2000 14:57:43 -0700 (PDT)
> On Mon, Apr 03, 2000 at 02:33:15PM -0500, Ben Fowler wrote:
> > 
> > My linker points out that I have three copies of  popup_menu_object in
> > libgui.a, but I can't see the cause of this & I don't believe that it does
> > any harm.
> > Ben.
> 
> 
> On what OS is this? Can you send us the exact link warning?

...and if he changes

	GtkWidget           *popup_menu_object;

to

	extern GtkWidget    *popup_menu_object;

in "gtk/menu.h", and put

	GtkWidget           *popup_menu_object;

into "gtk/main.c", do the warnings go away?

(If so, then he probably has a compiler that, for

	GtkWidget           *popup_menu_object;

generates an external definition rather than an external reference, and
a linker that warns about multiple external definitions but treats them
as UNIX-style common definitions.)