Re: gtk in cygwin



jimgardener <jimgardener@xxxxxxxxx> writes:

i am new to c programming with gcc(using cygwin on WinXP)
I have gtk in my cygwin installation (in lib\gtk-2.0)..and was trying
to compile c code that uses gtk widgets..

You should probably ask this sort of question on the cygwin user
mailing list--it has nothing to do with GNU/Linux.

still i get error msg when i run the gcc command
gcc mycode.c -o mycode `pkg-config --cflags --libs gtk+-2.0`
it shows

'gcc: `pkg-config: No such file or directory

can anyone tell me how i can get this correctly compiled?

As the error says, pkg-config was not found, so needs adding to the
search path.


--
.''`. Roger Leigh
: :' : Debian GNU/Linux http://people.debian.org/~rleigh/
`. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/
`- GPG Public Key: 0x25BFB848 Please GPG sign your mail.
.



Relevant Pages

  • Re: building pkgconfig
    ... > defaults, but any attempt to execute the resulting binary, pkg-config, ... 'too old' atk, glib, gtk ... ... Why do you need pkg-config-0.19 on such a system (with old gtk)? ... Either you pick simply an appropriate 'old' pkgconfig ...
    (comp.unix.solaris)
  • Re: dailogs with gtk?
    ... I've only use GTK+ 2.x, so take care with what I've written (I would ... > Dialog_YesNo would be a function that opens a dialog with two buttons (e.g. ... class mydialog: public Gtk::Dialog ... http://gimp-print.sourceforge.net/ GPG Public Key: 0x25BFB848. ...
    (comp.os.linux.development.apps)
  • Re: (gtk+) button with integer as its label
    ... I'm using linux so I wanted to make a gtk+ gui application. ... A stringstream puts the output into a string rather than to an fstream ... std::cout and other stream types, but the strmethod will give you ... `- GPG Public Key: 0x25BFB848 Please GPG sign your mail. ...
    (comp.os.linux.development.apps)
  • Re: [Gnome] m4 scripts for automake
    ... (Glib, Gtk, Gdk, ...) ... GTK+/GNOME program source to see it in use. ... `- GPG Public Key: 0x25BFB848 Please GPG sign your mail. ...
    (comp.os.linux.development.apps)
  • Re: building pkgconfig
    ... I am reasonably certain that the pkg-config ... search path is correct, so it is likely that my version of pangoxft is ... requires gtk v2.6 and, since gtk v2.8 also requires cairo, I thought ...
    (comp.unix.solaris)