Previously wrote an ubuntu under the configuration Eclipse Development GTK article, originally thought that under Windows the same method should have no problem, the result when make the time has:
G??? CC: Error: ' Pkg-config:no such file or directory
gcc:error:gtk+-2.0 ': No such file or directory
gcc:error:unrecognized command line option '--cflags '
gcc:error:unrecognized command line option '--libs
This kind of egg ache hint, I found the method at the following URL: http://www.360doc.com/content/14/0627/13/13881977_390243767.shtml
In general, the Windows System command line does not recognize the ' symbol, the workaround is to set the environment variable, so that the environment variable contains pkg-config--cflags--libs gtk+-2.0 output
But at the end of the text there seems to be a bit of a mistake, so my approach is:
Add a new variable to the environment variable: GTK
The content is the output of the Pkg-config--cflags--libs gtk+-2.0, a simple compile command that contains the GTK library is:
Gcc-o Hello hello.c%gtk%
Setup Eclipse Development GTK Environment under Windows