Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/go/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Can';由于缺少包含路径,无法构建使用Swig构建的go模块_Go_Swig - Fatal编程技术网

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

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

在我的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

如何为go安装指定包含目录?

将CPLUS\u include\u路径导出到所需的包含路径修复了此问题