Re: gtk with mingw - compile problem helloworld
Mark Space <[email protected]> Mon, 14 Apr 2003 21:34:20 -0700
| Newsgroups | gmane.comp.video.gimp.windows.devel |
|---|---|
| Message-ID | <[email protected]> |
Harring Figueiredo wrote:
> You might also want to use pkg-config so that it takes care of compiler/linker
>flags; that wasy, you won't have to deal with this "mundane" stuff :)
>
>Harring
>
Yep. ^_^ For comparison, here's my (working) makefile:
EXE=hw2.exe
SRC=hw2.c
XCCFLAGS= -mms-bitfields
$(EXE): $(SRC) Makefile
gcc $(SRC) -o $(EXE) $(XCCFLAGS) `pkg-config --cflags --libs
gtk+-1.3-win32-production`
Pretty simple, huh? The only gotcha is that the tutorials say to use
"pkg-config --flags gtk-1.3" and that config doesn't actually exist for
win32. Use the one I have above, or look in /_top_/usr/lib/pkgconfig
for a *.pc file that might suit you better. (Note I'm also using Msys to
get a compatible version of make and a shell that recognizes the ``
back-quotes.)
TTFN.