Re: [Ubuntu-zh] 怎样编译gtk程序啊

Tang Zhilong ak474840 at gmail.com
Tue Jul 11 09:26:36 BST 2006


root at ubuntulike:/home/tzl# cc window.c -o windows 'pkg-config --cflags
--libs gnomeui'
cc: 'pkg-config: No such file or directory
cc: gnomeui': No such file or directory
cc1: error: unrecognized command line option "-fcflags"
cc1: error: unrecognized command line option "-flibs"


how to deal with this problem

On 7/10/06, Shixin Zeng <shixinzeng at gmail.com> wrote:
>
>
>
> On 7/10/06, Tang Zhilong <ak474840 at gmail.com> wrote:
>
> > sorry.i mean how to build an gtk environment.
> > when i use the order like yours,i always get a error"can't find
> > pkg-config" or sonething like this.
> >
>
> You should install pkg-config first.
> Of course, If your GTK+ is not new enough, e.g. released before pkg-config
> was invented, you should use gtk-config. As you said that 'gtk-config' did
> work on your system, I presume that this is not the your case.
>
>  On 7/10/06, Shixin Zeng <shixinzeng at gmail.com > wrote:
> > >
> > >
> > > Sorry, forgot a CC
> > >
> > > ---------- Forwarded message ----------
> > > From: Shixin Zeng < shixinzeng at gmail.com>
> > > Date: Jul 10, 2006 7:11 PM
> > > Subject: Re: [Ubuntu-zh] 怎样编译gtk程序啊
> > > To: Tang Zhilong < ak474840 at gmail.com>
> > >
> > >
> > > gcc `pkg-config gtk+-2.0 --cflags --libs` -o hw hello.c
> > >
> > > On 7/10/06, Tang Zhilong <ak474840 at gmail.com > wrote:
> > > >
> > > > gtk-config没用
> > > >
> > > > --
> > > > ubuntu-zh mailing list
> > > > ubuntu-zh at lists.ubuntu.com
> > > > https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
> > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > Best regards
> > >
> > >
> > > Shixin Zeng
> > >
> > >
> > > --
> > > Best regards
> > >
> > >
> > > Shixin Zeng
> > >
> > > --
> > > ubuntu-zh mailing list
> > > ubuntu-zh at lists.ubuntu.com
> > > https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
> > >
> > >
> > >
> >
>
>
> --
> Best regards
>
> Shixin Zeng
>
> --
> ubuntu-zh mailing list
> ubuntu-zh at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-zh/attachments/20060711/70c19389/attachment.htm


More information about the ubuntu-zh mailing list