Setup Eclipse Development GTK Environment under Windows

Source: Internet
Author: User
Tags gtk

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.