PDA

View Full Version : MinGW32 and gtk setup in Windows



Joelito
02-05-2009, 09:55 AM
Hi all!

I already install mingw32 and gtk runtime & dev.
I'm trying to compile a simple gtk+ hello world in windows and I got this error:


mingw32-gcc.exe: `pkg-config: No such file or directory
cc1.exe: error: unrecognized command line option "-fcflags"
cc1.exe: error: unrecognized command line option "-flibs'"

This is my code for compile:


mingw32-gcc.exe -Wall -O2 -mms-bitfields main.c -o "x:\test\test.exe" `pkg-config --cflags --libs'

Any ideas?
PS:
I have in my mingw\bin all the neccesary files from mingw, gtk and pkg-config, etc.

tabstop
02-05-2009, 11:39 AM
The Windows command prompt doesn't recognize backtick, I'm pretty sure. You may have to run pkg-config and remember what the result is.