2017-11-02 14 views
0

SWIG를 사용하여 일부 C# 래퍼를 만들었지 만, 해당 .i 라이브러리를 포함시킨 후에도 오류 집합이있는 것으로 보입니다! 옵션으로SWIG : 오류 : 'stdexcept'를 찾을 수 없습니다.

core\Expected.hpp(18) : Error: Unable to find 'memory' 
core\Expected.hpp(19) : Error: Unable to find 'utility' 
core\Expected.hpp(20) : Error: Unable to find 'typeinfo' 
core\Expected.hpp(21) : Error: Unable to find 'exception' 
core\Expected.hpp(22) : Error: Unable to find 'stdexcept' 
core\Expected.hpp(23) : Error: Unable to find 'type_traits' 
core\Definitions.hpp(22) : Error: Unable to find 'inttypes.h' 
core\Definitions.hpp(23) : Error: Unable to find 'type_traits' 
core\Definitions.hpp(24) : Error: Unable to find 'stddef.h' 
core\Definitions.hpp(25) : Error: Unable to find 'stdint.h' 
core\EnumBitMaskGenerator.hpp(18) : Error: Unable to find 'type_traits' 
core\PImpl.hpp(20) : Error: Unable to find 'type_traits' 
core\PImpl.hpp(21) : Error: Unable to find 'memory' 
core\PImplSizes.hpp(18) : Error: Unable to find 'vector' 
core\PImplSizes.hpp(19) : Error: Unable to find 'deque' 
core\PImplSizes.hpp(20) : Error: Unable to find 'fstream' 
core\PImplSizes.hpp(21) : Error: Unable to find 'memory' 
core\PImplSizes.hpp(22) : Error: Unable to find 'map' 
core\PImplSizes.hpp(23) : Error: Unable to find 'mutex' 
core\PImplSizes.hpp(24) : Error: Unable to find 'atomic' 
concurrency\ThreadLocalPointer.hpp(20) : Error: Unable to find 'thread' 
concurrency\ThreadLocalPointer.hpp(21) : Error: Unable to find 'unordered_map' 

그리고 여기에 명령 행 :

swig.exe -includeall -C++ 여기

% 모듈 test_module

%include <stl.i> 
%include <windows.i> 
%include <typemaps.i> 
%include <stdint.i> 
%include <std_string.i> 
%include <std_vector.i> 
%include <inttypes.i> 
%include <attribute.i> 
%include <cpointer.i> 
%include <exception.i> 
%include <carrays.i> 
%include <cdata.i> 
%include <cmalloc.i> 
%include <constraints.i> 
%include <cpointer.i> 
%include <cwstring.i> 
%include <intrusive_ptr.i> 
%include <math.i> 
%include <pointer.i> 
%include <std_except.i> 
%include <swigarch.i> 
%include <swigrun.i> 
%include <wchar.i> 
%include <shared_ptr.i> 

%{ 
    #include "Context.hpp" 
%} 

%feature("nspace") Context; 

%include "Context.hpp" 

오류의 목록입니다 -csharp -macroerrors -cppext cpp ...

어떤 생각?

감사합니다.

답변