2016-11-25 2 views
-1

내 wxwidget (3.10 DEV 버전) 파일을 찾을 수 없습니다 :'WX/wx.h'이 링크를 기반으로 설치되어 codelite의 최신 wxwidget 버전 이클립스 CDT 프로젝트에

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. 

: 그 자체가 나에게주는

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

이클립스 것은 나에게 제공합니다

/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 

이클립스는 제공 :

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)을 읽어보십시오. 당신이 아무 것도하지 않았다면 어떻게 일할 것을 기대합니까? –