Search This Blog

Sunday, March 2, 2008

Ubuntu用eclipse+cdt開發gtk+2.0設定方式

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: