Re: gnome-program.h: defining variables in headers
- From: murrayc t-online de (Murray Cumming)
- To: ERDI Gergo <cactus cactus rulez org>
- Cc: Havoc Pennington <hp redhat com>, gnome-2-0-list <gnome-2-0-list gnome org>
- Subject: Re: gnome-program.h: defining variables in headers
- Date: 06 Dec 2001 16:43:50 +0100
On Thu, 2001-12-06 at 14:27, ERDI Gergo wrote:
> On 5 Dec 2001, Havoc Pennington wrote:
>
> > I'd say that if some apps in CVS are really using this for something
> > reasonable/common, we should do the first thing (provide accessors).
> > If however no one is using it or the uses of it are
> > obscure/weird/crack-ridden, we should just delete the whole deal as
> > Glynn suggests.
> >
> > g_get_prgname() seems like it's probably appropriate for most uses.
>
> I wasn't aware of g_get_prgname(). In this case, I propose removing the
> variables from libgnome and using g_set_prgname() in gnome_init.
> BTW, why isn't g_get_prgname()'s return value declared const?
That's good timing. Maybe that's why I'm getting this error in
libgnomeuimm:
main.lo: In function `Gnome::Main type_info function':
/gnome/head/cvs/gnomemm/libgnomeuimm/libgnomeui/libgnomeuimm/main.cc(.bss+0x0): multiple definition of `program_invocation_short_name'
client.lo(.bss+0x4):/gnome/head/cvs/gnomemm/libgnomeuimm/libgnomeui/libgnomeuimm/../../libgnomeui/libgnomeuimm/client.h: first defined here
main.lo: In function `Gnome::Main type_info function':
/gnome/head/cvs/gnomemm/libgnomeuimm/libgnomeui/libgnomeuimm/main.cc(.bss+0x4): multiple definition of `program_invocation_name'
client.lo(.bss+0x8):/gnome/head/cvs/gnomemm/libgnomeuimm/libgnomeui/libgnomeuimm/../../libgnomeui/libgnomeuimm/client.h: first defined here
collect2: ld returned 1 exit status
make[4]: *** [libgnomeuimm-1.3.la] Error 1
I haven't a clue how to fix this.
--
Murray Cumming
murrayc usa net
www.murrayc.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]