Ethereal

Re: Patches was Re: [ethereal-dev] duplicate menu items
Google
 
Web Ethereal.com

Home | Introduction | Documentation | Lists | FAQ | Development | Wiki | Bugs

Ethereal-dev: April 2000


> 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.)


Powered by MHonArc 2.6.10