Can';由于缺少包含路径,无法构建使用Swig构建的go模块
在我的swig接口文件中,我使用的包括:Can';由于缺少包含路径,无法构建使用Swig构建的go模块,go,swig,Go,Swig,在我的swig接口文件中,我使用的包括: %{ #include "lib-cpp/types/lists/linked-list.hpp" %} %include "lib-cpp/types/lists/linked-list.hpp" 但是,当我运行go install时,我得到: navdb_go_client_wrap.cxx:258:14: fatal error: 'lib-cpp/types/lists/linked-list.hpp' file not found
%{
#include "lib-cpp/types/lists/linked-list.hpp"
%}
%include "lib-cpp/types/lists/linked-list.hpp"
但是,当我运行go install时,我得到:
navdb_go_client_wrap.cxx:258:14: fatal error: 'lib-cpp/types/lists/linked-list.hpp' file not found
如何为go安装指定包含目录?将CPLUS\u include\u路径导出到所需的包含路径修复了此问题