Re: gtk with mingw - compile problem helloworld

"jaccobacco" <[email protected]> Tue, 15 Apr 2003 04:38:05 -0000
Newsgroups gmane.comp.video.gimp.windows.devel
Message-ID <[email protected]>
Thanks for the info about pkg-config - I do hope to learn more about 
using it soon once the foundation is working.

--- In [email protected], Mark Space <brenden@r...> wrote:
> 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.