need help using gtk in cygwin
Von: jimgardener (jimgardener@gmail.com) [Profil]
Datum: 19.01.2008 15:23
Message-ID: <67b83749-62f1-4c1e-9d8e-02bd1074c8bf@s19g2000prg.googlegroups.com>
Newsgroup: de.alt.comp.cygwin+co
Datum: 19.01.2008 15:23
Message-ID: <67b83749-62f1-4c1e-9d8e-02bd1074c8bf@s19g2000prg.googlegroups.com>
Newsgroup: de.alt.comp.cygwin+co
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..i tried the first example from gtk tutorial(http://www.gtk.org/tutorial/) and used gcc mycode.c -o mycode `pkg-config --cflags --libs gtk+-2.0` to compile it i have pkg-config.exe in the cygwin/bin folder (which is set in PATH)and i have set the PKG_CONFIG_PATH so i can run pkg-config --cflags --libs gtk+-2.0 and it will generate the list of include directories.. 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 gcc: gtk-2.0`: No such file or directory cc1: error: unrecognized command line option "-fcflags" cc1: error: unrecognized command line option "-flibs" can anyone tell me how i can get this correctly compiled? jim[ Auf dieses Posting antworten ]
