第一种方法出错
G:\workspace\gtktst>gcc -o hello.exe G:\workspace\gtktst\dd.c `pkg-config --cflags --libs gtk+-2.0`
gcc: `pkg-config: No such file or directory
gcc: gtk+-2.0`: No such file or directory
cc1.exe: error: unrecognized command line option "-fcflags"
cc1.exe: error: unrecognized command line option "-flibs"
第二种方法出错
G:\workspace\gtktst>gcc -o hello.exe G:\workspace\gtktst\dd.c `pkg-config --cflags gtk+-2.0` `pkg-config --libs gtk+-2.0`
gcc: `pkg-config: No such file or directory
gcc: gtk+-2.0`: No such file or directory
gcc: `pkg-config: No such file or directory
gcc: gtk+-2.0`: No such file or directory
cc1.exe: error: unrecognized command line option "-fcflags"
cc1.exe: error: unrecognized command line option "-flibs"