Thread: MinGW32 and gtk setup in Windows

  1. #1
    Registered User Joelito's Avatar
    Join Date
    Mar 2005
    Location
    Tijuana, BC, México
    Posts
    310

    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:
    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.
    * PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with xfce4.
    * Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with xfce4.

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    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.

Popular pages Recent additions subscribe to a feed