1. 安裝eclipse套件和cdt plugin or 到eclipse官網下載Eclipse IDE for C/C++ Developers
2. 安裝gtk-2.0 development套件
3. 設定eclipse
Project->Properties->C/C++ Build->Setting->GCC C Compiler->Miscellaneous->Other flags
在最後面加入`pkg-config --cflags gtk+-2.0` (要用copy/paste,注意引號)
Project->Properties->C/C++ Build->Setting->GCC C Linker->Miscellaneous->Other Options
加入`pkg-config --libs gtk+-2.0`
No comments:
Post a Comment