GTK + Development Environment configuration in Windows (VC)

Source: Internet
Author: User

 

 

I mainly refer to the method of this post.

Http://www.cnblogs.com/PlayMoreSite/archive/2008/10/01/1302990.html

However, you do not need to install third-party software to obtain the Runtime Library. Otherwise, database versions may be inconsistent.ProgramCannot run

 

 

Download the required Runtime Library and Development headers and Lib library from the URL below

Http://www.gtk.org/download/win32.php

Download the run-time and Dev packages under GTK + individual packages and required third party dependencies.

Decompress all these packages to the specified directory. After the package is decompressed, it should be as follows:

 

Add the bin directory to the path environment variable.

 

Then include the header file and Lib library directory in VC (vs2003)

Right-click "Project Properties" and "C/C ++". The general additional include directory contains both the include directory and the following subdirectories.

Right-click "Project Properties", "linker", and add the absolute directory of lib to the general additional library directory.

Add the required Lib in the additional options of the command line, as shown in figure

 

Then, you need to find glibconfig. h and gdkconfig. h under the glib and GTK subdirectories under the lib directory and put them under the include root directory.

 

Now you can find an example to run it.

Directly use this example: http://www.huzheng.org/ebook/gtk2-tut/c103.html#SEC-HELLOWORLD

 

Running effect:

 

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.