C Board  

Go Back   C Board > Community Boards > General Discussions

Reply
 
LinkBack Thread Tools Display Modes
Old 02-05-2009, 09:55 AM   #1
Registered User
 
Joelito's Avatar
 
Join Date: Mar 2005
Location: Tijuana, BC, México
Posts: 285
MinGW32 and gtk setup in Windows

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:
Quote:
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:
Code:
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.
__________________

* Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM
* Kubuntu 10.04; Kernel 2.6.32-22-generic.
* lighttpd with php5, perl, eruby and python.
* Codeblocks & geany: HTML & CSS & JavaScript, Gtk+, QT4 and wxWidgets.
Joelito is offline   Reply With Quote
Old 02-05-2009, 11:39 AM   #2
and the Hat of Guessing
 
tabstop's Avatar
 
Join Date: Nov 2007
Posts: 10,163
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.
tabstop is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump


All times are GMT -6. The time now is 12:04 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22