运行带有dep的vet时找不到头文件

I get this error when running go vet in my project, with vendored dependencies.

$ go vet ./...
# <project path...>/vendor/github.com/ethereum/go-ethereum/crypto/secp256k1
vendor/github.com/ethereum/go-ethereum/crypto/secp256k1/curve.go:42:10: fatal error: libsecp256k1/include/secp256k1.h: No such file or directory
 #include "libsecp256k1/include/secp256k1.h"

I thought that this was a dependency missing in the development environment, but when looking at the original project source, the include path is relative to the source file.

Why can the file not be found?

查看全部
dsf4354353452
dsf4354353452
2018/08/20 10:43
  • cgo
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

2个回复