2016-11-25 5 views
-1

マイwxwidget(3.10のdevのバージョン)がインストールされています:このリンクに基づいてcodeliteの最新wxwidgetバージョンと日食CDTプロジェクトでは見られない「WX/wx.h」ファイル

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> 

構築し、eclip含めて変更した後

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: 
../src/DSToDo.h:11:10: fatal error: 'wx/wx.h' file not found 
#include <wx/wx.h> 
    ^
1 error generated. 

:SEは私を与える

#include <wx-3.1-unofficial/wx/wx.h> 

のEclipseは私に与える:

/usr/include/wx-3.1-unofficial 

に追加

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. 

場合

c/c++ build->settings->LLVM Clang++->Includes 

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. 

この問題を解決する方法は?

+0

"ヘッダ検索パス"と "リンカオプション"のプロジェクト設定はどうですか? – Igor

答えて

1

-I/usr/include/wx-3.1-unofficialをコンパイラオプションに追加する必要があります。

ただし、この非標準の場所にヘッダーがインストールされている理由はわかりません。

+0

これを追加していただきありがとうございます。新しいエラーが表示されます。 –

+0

wxWidgetsを使ってアプリケーションを構築するには、[documentation](https://github.com/wxWidgets/wxWidgets/blob/v3.1.0/docs/msw/install.txt#L494)を読む必要があります。あなたが何かをやっていなければ、何が働くと思いますか? –