Re: =?UTF-8?Q?=E5=9B=9E=E5=A4=8D?= =?UTF-8?Q?=EF=BC=9A?= Re: Using GTK+ with C++



On Mon, 2006-06-26 at 10:36 +0800, yeajchao wrote:
> hello
>      when i using gtk+ with c++,how can i compile my application?

The same way you do it with C, except you have to use g++ instead of
gcc.  But the command line arguments for doing the build and using pkg-
config to get the cflags and ldflags is the same.

Michael


> 
> --- Chris Vine <chris cvine freeserve co uk>写道:
> 
> > On Sunday 25 June 2006 17:17, Paulo J. Matos wrote:
> > > Hi all,
> > >
> > > I know about gtkmm but if I wish to use GTK+ directly, can I do it
> > > through C++? Is anyone doing this? Are there any 'tricks' I should
> > > know about beyond having to extern "C" the includes of gtk header
> > > files?
> > 
> > They are already declared extern "C" if compiled for a C++ program.  There is
> > 
> > nothing you need to know - just use them.
> > 
> > Chris
> > 
> > _______________________________________________
> > gtk-list mailing list
> > gtk-list gnome org
> > http://mail.gnome.org/mailman/listinfo/gtk-list
> > 
> 
> 
> 
> 		
> ___________________________________________________________ 
> 雅虎免费邮箱-3.5G容量,20M附件 
> http://cn.mail.yahoo.com/
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list




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