带有eclipsecdt的Gtk

带有eclipsecdt的Gtk,c,windows,makefile,gtk,eclipse-cdt,C,Windows,Makefile,Gtk,Eclipse Cdt,我安装了pkg配置 并在构建设置中添加了pkg config-cppflags和pkg config--libs 请帮忙 我正在使用Windows8和eclipse开普勒 14:58:32 **** Incremental Build of configuration Debug for project Hi_c_gtk **** make all Building file: ../src/Hi_c_gtk.c Invoking: Cross GCC Compiler gcc -O0 -g3

我安装了pkg配置 并在构建设置中添加了pkg config-cppflags和pkg config--libs 请帮忙 我正在使用Windows8和eclipse开普勒

14:58:32 **** Incremental Build of configuration Debug for project Hi_c_gtk ****
make all 
Building file: ../src/Hi_c_gtk.c
Invoking: Cross GCC Compiler
gcc -O0 -g3 -Wall -c -fmessage-length=0 pkg-config gtkmm-2.4 --cflags -MMD -MP -MF"src/Hi_c_gtk.d" -MT"src/Hi_c_gtk.d" -o "src/Hi_c_gtk.o" "../src/Hi_c_gtk.c"
cygwin warning:
  MS-DOS style path detected: C:\Users\Project\workspace1\Hi_c_gtk\Debug
  Preferred POSIX equivalent is: /cygdrive/c/Users/Project/workspace1/Hi_c_gtk/Debug
  CYGWIN environment variable option "nodosfilewarning" turns off this warning.
  Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
gcc: error: pkg-config: No such file or directory
gcc: error: gtkmm-2.4: No such file or directory
gcc: error: unrecognized command line option ‘--cflags’
src/subdir.mk:18: recipe for target 'src/Hi_c_gtk.o' failed
make: *** [src/Hi_c_gtk.o] Error 1

我知道您正在尝试将GTK与Windows上的Eclipse集成。 我最近在GNU/Linux和Windows环境中都做到了这一点。在GNU/Linux上,只需从Eclipse marketplace安装pkg config并添加所需的库即可。 在Windows上,我必须通过修改编译器选项手动配置包含路径。您需要在Project-C/C++构建设置中手动添加GTK+请求的所有Include和库。我用了Cygwin的gcc

有关完整过程的说明,请参见