Eclipse ';wx/wx.h';在带有codelite';wxwidget的最新版本

Eclipse ';wx/wx.h';在带有codelite';wxwidget的最新版本,eclipse,wxwidgets,Eclipse,Wxwidgets,我的wxwidget(3.10开发版本)是基于以下链接安装的: http://codelite.org/LiteEditor/WxWidgets31Binaries 并注意到相应的头文件放在: /usr/include/wx-3.1-unofficial/wx/wx.h 在该文件中,“wx.h”如下所示: #ifndef DSTODO_H_ #define DSTODO_H_ #include <wx/wx.h> 如果添加 /usr/include/wx-3.1-unoffic

我的wxwidget(3.10开发版本)是基于以下链接安装的:

http://codelite.org/LiteEditor/WxWidgets31Binaries
并注意到相应的头文件放在:

/usr/include/wx-3.1-unofficial/wx/wx.h
在该文件中,“wx.h”如下所示:

#ifndef DSTODO_H_
#define DSTODO_H_
#include <wx/wx.h>
如果添加

/usr/include/wx-3.1-unofficial

Eclipse提供:

Info: Internal Builder is used for build
clang++ -I/usr/lib/llvm-3.8/lib **-I/usr/include/wx-3.1-unofficial** -O0 -emit-llvm -g3 -Wall -c -fmessage-length=0 -o src/DSToDo.bc ../src/DSToDo.cpp 
In file included from ../src/DSToDo.cpp:8:
In file included from ../src/DSToDo.h:11:
In file included from /usr/include/wx-3.1-unofficial/wx/wx.h:14:
In file included from /usr/include/wx-3.1-unofficial/wx/defs.h:20:
/usr/include/wx-3.1-unofficial/wx/platform.h:136:10: fatal error: 'wx/setup.h' file not found
#include "wx/setup.h"
         ^
1 error generated.

如何解决此问题?

您需要在编译器选项中添加
-I/usr/include/wx-3.1-非正式的


但是,我不知道为什么要在这个非标准位置安装标题。

你对“标题搜索路径”和“链接器选项”的项目设置是什么?你真的需要阅读使用wxWidgets构建应用程序的指南,我真的不明白如果你什么都没有做,你希望什么都能起作用。
Info: Internal Builder is used for build
clang++ -I/usr/lib/llvm-3.8/lib -O0 -emit-llvm -g3 -Wall -c -fmessage-length=0 -o src/DSToDo.bc ../src/DSToDo.cpp 
In file included from ../src/DSToDo.cpp:8:
In file included from ../src/DSToDo.h:11:
/usr/include/wx-3.1-unofficial/wx/wx.h:14:10: fatal error: 'wx/defs.h' file not found
#include "wx/defs.h"
     ^
1 error generated.
/usr/include/wx-3.1-unofficial
c/c++ build->settings->LLVM Clang++->Includes
Info: Internal Builder is used for build
clang++ -I/usr/lib/llvm-3.8/lib **-I/usr/include/wx-3.1-unofficial** -O0 -emit-llvm -g3 -Wall -c -fmessage-length=0 -o src/DSToDo.bc ../src/DSToDo.cpp 
In file included from ../src/DSToDo.cpp:8:
In file included from ../src/DSToDo.h:11:
In file included from /usr/include/wx-3.1-unofficial/wx/wx.h:14:
In file included from /usr/include/wx-3.1-unofficial/wx/defs.h:20:
/usr/include/wx-3.1-unofficial/wx/platform.h:136:10: fatal error: 'wx/setup.h' file not found
#include "wx/setup.h"
         ^
1 error generated.