[9499] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Re: gtk_init wierdness

daemon@ATHENA.MIT.EDU (Scott Stone)
Thu Oct 22 09:35:37 1998

Date: Thu, 22 Oct 1998 22:33:08 +0900 (JST)
From: Scott Stone <sstone@ume.pht.co.jp>
To: gtk-list@redhat.com
In-Reply-To: <199810221329.JAA05608@mousetrap.ml.org>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

On Thu, 22 Oct 1998, katre wrote:

> > 
> > the call to gtk_init should look like:
> > 
> > gtk_init(argc,&argv);
> > 
> > ie, no & in front of argc, like you have below.
> > 
> 
> According to gtkmain.h:
> void       gtk_init              (int          *argc,
>                                   char       ***argv);
> 
> Has this changed in current versions?  I though the point of gtk_init was that
> it changed the arguments, removing the ones it processed.  It would almost
> have to change argc too, then.

hm, you're right.  In that case... hm, maybe your libraries are
incorrectly built?  Compile your program and do an ldd on it, what does
the output look like?

--------------------------------------------------
Scott M. Stone <sstone@pht.com, sstone@turbolinux.com>
               <sstone@pht.co.jp>
Head of TurboLinux Development/Systems Administrator
Pacific HiTech, Inc (USA) / Pacific HiTech, KK (Japan)
http://www.pht.com		http://armadillo.pht.co.jp
http://www.pht.co.jp	        http://www.turbolinux.com


-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post