Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/161.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
C++ Can';无法在windows上编译结构-缺少ltdl.h_C++_Hyperledger Fabric_Libtool - Fatal编程技术网

C++ Can';无法在windows上编译结构-缺少ltdl.h

C++ Can';无法在windows上编译结构-缺少ltdl.h,c++,hyperledger-fabric,libtool,C++,Hyperledger Fabric,Libtool,我正在尝试使用go build构建链码 环境: 已安装go 1.8.3 windows/amd 视窗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 s

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

环境:

  • 已安装go 1.8.3 windows/amd
  • 视窗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文件

我发现了一篇带有a的SO帖子,但不是针对Windows的


有人能帮忙吗?

在windows上,您可以不使用PKCS构建


go build--tags nopkcs11

尝试运行以下命令

sudo apt install libtool libltdl-dev

确保
go-get-u github.com/hyperledger/fabric/core/chaincode/shim
不会抛出错误,然后
go-build
it.

该死,我希望有人能想出如何让pkcs11在Windows上工作的方法。可能需要交叉编译或使用cygwin。