根据include ,你需要定位这些文件
1 | #include <gtk/gtk.h> |
2 | #include <glade/glade.h> |
3 | #include <stdio.h> |
4 | #include <string.h> |
5 | #include <libgen.h> |
6 | #include <libgtkhtml/gtkhtml.h> |
1 | #include <curl/curl.h> |
请使用 $ whereis gtk.h 查找头文件位置,加入 include path,
然后查找相对应的库 $ whereis libgtk.a 加入library,libraries path
为eclipse的项目为include path
打开php的项目目录->右键点击"PHP Include Path"->include path
->configure include path->打开的窗口中有source/project/libraries/order等->
选择libraries选项卡->点击 add library ->在找开的窗口里可以新建一个lib目录并加入项目.
重启eclipse,选择Window/Preference下的C/C++栏,定位到Environment,添加几个环境变量,
C_INCLUDE_PATH,CPLUS_INCLUDE_PATH,LIBRARY_PATH和path
C_INCLUDE_PATH,CPLUS_INCLUDE_PATH,LIBRARY_PATH和path