gnu ld(mac)无效,链接器命令失败,错误代码为1

时间:2015-11-06 18:18:28

标签: c++ macos linker ld cudd

我的ld有以下问题。

$ ld
ld: warning: -arch not specified
ld: warning: -macosx_version_min not specified, assuming 10.9
ld: no object files specified for inferred architecture x86_64

我该怎么办?

编译CUDD时出现以下错误:

libmtr.a ../st/libst.a ../util/libutil.a ../epd/libepd.a  -lm
Undefined symbols for architecture x86_64:
  "_edata", referenced from:
      _util_print_cpu_stats in libutil.a(cpu_stats.o)
  "_end", referenced from:
      _util_print_cpu_stats in libutil.a(cpu_stats.o)
  "_etext", referenced from:
      _util_print_cpu_stats in libutil.a(cpu_stats.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [nanotrav] Error 1
make: *** [build] Error 2

PS:我正在使用

$ xcodebuild -version
Xcode 7.1
Build version 7B91b

我的ld是/usr/bin/ld

0 个答案:

没有答案