weixin_39040540
weixin_39040540
采纳率0%
2017-06-04 12:47 浏览 1.1k

Linux运行PBC库中bls程序Make时报错

错误提示:
make all
Building target: BLSExample
Invoking: GCC C Linker
gcc -L/usr/local/lib -o "BLSExample" ./bls.o -lpbc
/usr/bin/ld: ./bls.o: undefined reference to symbol '__gmpz_init'
//usr/local/lib/libgmp.so.10: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [BLSExample] Error 1
makefile:29: recipe for target 'BLSExample' failed

新手,希望可以知道详细解决方法 要详细!!!

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答 默认 最新

相关推荐