duanfei8149 2019-02-25 12:44
浏览 97

由于缺少包含路径,因此无法构建使用Swig构建的go模块

In my swig interface file I use includes such as:

%{
    #include "lib-cpp/types/lists/linked-list.hpp"
%}
%include "lib-cpp/types/lists/linked-list.hpp"

However when I run go install I get:

navdb_go_client_wrap.cxx:258:14: fatal error: 'lib-cpp/types/lists/linked-list.hpp' file not found

How do I specify an include directory for go install?

  • 写回答

1条回答 默认 最新

  • douyanqu9722 2019-02-25 14:45
    关注

    Exporting CPLUS_INCLUDE_PATH to the required include path fixed this.

    评论

报告相同问题?