Tag:ar file sp on c ad r c++ bs
- Environment Introduction
- Operating system Ubuntu 11
- Software Eclipse
- Class Library gtk2.0
- Software Installation
- GTK Install command sudo apt-get install Libgtk2.0-dev
- Eclipse settings
- Get the Include directory list and library list miscellaneous
- Pkg-config--cflags gtk+-2.0 > Include.txt
- Pkg-config--libs gtk+-2.0 > Libs.txt
- Directory containing gtk2.0 header files: project->properties->c/c++ build->settings->gcc C Compiler->include->add Directories that appear in the Include.txt file (without-i)
- Set environment variables that contain the strings in the following diagram to enable GCC to find the path to GTK when looking for header files and libraries: project->properties->c/c++ BUILD->SETTINGS->GCC C Compiler->miscellaneous->other flags-> add ' pkg-config--cflags gtk+-2.0 '
- Set the library to be loaded by the program: project->properties->c/c++ BUILD->SETTINGS->GCC C Linker->libraries->add Files that appear in the Libs.txt file (without the-l), such as gtk-x11-2.0
Eclipse Integrated GTK Development environment