gtk in cygwin
- From: jimgardener <jimgardener@xxxxxxxxx>
- Date: Sat, 19 Jan 2008 06:26:58 -0800 (PST)
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
.
- Follow-Ups:
- Re: gtk in cygwin
- From: Roger Leigh
- Re: gtk in cygwin
- Prev by Date: Re: Processing files larger than 2.2GB.
- Next by Date: Re: gtk in cygwin
- Previous by thread: Processing files larger than 2.2GB.
- Next by thread: Re: gtk in cygwin
- Index(es):
Relevant Pages
|