我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

由于缺少包含路径,因此无法构建使用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?

Exporting CPLUS_INCLUDE_PATH to the required include path fixed this.

近期文章

  • 如何触发Java应用程序(来自Google GO / golang子进程的java -jar <app name>
  • 如何通过reflect.Append将nil附加到动态类型切片
  • 测试Go中从Function返回的Cookie
  • Golang中的模糊字符串匹配
  • 我应该如何在后台运行Golang进程?
  • 代表许多领域的最优雅的方式
  • 带有mgo驱动程序的MongoDB管理员命令
  • Go-可变参数函数传递
  • Golang mgo MongoDB bson.ObjectId非utf-8错误
  • 在Go中封装结构
  • 尝试异常替代方案以保护应用程序不崩溃
  • 接口内部的反射数组
  • go 1.5 trace命令
  • for循环导致死锁
  • 正则表达式不匹配
  • 如何在Golang中以不同的软件包使用Gorilla Sessions
  • 您如何使用godoc作为网页为go程序提供简单的文档?
  • 调用嵌入式结构接口方法而不会丢失接收方的类型信息
  • 是否为golang代码建立了已建立的模式名称,该名称似乎类似于mixin
  • 在Go中使用元编程来解析网络协议

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华