c++ - 无法在 Windows 上编译结构 - 缺少 ltdl.h

标签 c++ hyperledger-fabric libtool

我正在尝试使用 go build 构建链代码。

环境:

  • 安装 go 1.8.3 windows/amd
  • Windows 10

当我运行 go build 时,出现以下错误:

# github.com/hyperledger/fabric/vendor/github.com/miekg/pkcs11
..\..\github.com\hyperledger\fabric\vendor\github.com\miekg\pkcs11\pkcs11.go:29:18: fatal error: ltdl.h: No such file or directory
compilation terminated.

我检查过,我的 GCC 安装不包含 include 文件夹中的 ltdl.h 文件。

我找到了一个带有 solution for Linux 的 SO 帖子,但不适用于 Windows。

有人可以帮忙吗?

最佳答案

在 Windows 上,您可以在没有 PKCS 的情况下构建

go build --tags nopkcs11

关于c++ - 无法在 Windows 上编译结构 - 缺少 ltdl.h,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45563414/

相关文章:

c++ - 从通用 lambda 调用 `this` 成员函数 - clang vs gcc

c++ - Qt简单记事本,QmainWindow状态栏打印行号

c++ - AES256 OFB 模式在 C/C++ 中获取 key 流

hyperledger-fabric - Hyperledger-composer:预期的资源或概念

couchdb - 无法连接到http ://localhost:5984/_utils

c++ - 使用类的数组重载 > 运算符

kubernetes - 在将Hyperledger Fabric对等方部署到Kubernetes时获取 “cannot init crypto”

c++ - 使用 libtool 链接静态库

configure - 为 RISCV 配置 pocl

cygwin - 有条件地禁用共享库构建