1. 新建c/c++项目
2. 右建 点击 刚创建的项目,选择 Properties>>C/C++ Builder>>Settings>>GCC C++ Compiler>>Command Line Pattern最后加`pkg-config --cflags --libs gtk+-2.0`
注意:不是单引号, 是esc键下面的那个键
3. Properties>>C/C++ Builder>>Settings>>GCC C++ Linker>>Command Line Pattern最后加`pkg-config --cflags --libs gtk+-2.0`
4. 增加智提示:Properties>>c/c++ general->paths and symbols>>Assembly>>includes directory>>Add 输入 /usr/include/gtk-2.0
本文介绍如何为C/C++项目配置GTK+2.0开发环境,包括设置GCC编译器和链接器的命令行参数,以及如何添加智能提示的路径。
677

被折叠的 条评论
为什么被折叠?



