1

我下载了 boost 库 1_53 并按照步骤在核心 i7 机器上的我的 MAC Pro 系统 Mac Os 10.7.4 上编译它。

  1. ./bootstrap.sh
  2. .b2

这些命令成功构建了 boost 库并生成了所有库。现在,当我使用这些库通过现有代码进行编译时,出现以下错误。在我的应用程序中,我只使用了四个库。我正在为 XCode 中的 32/64 arch 和 10.7 SDK 和 Apple llvm 编译器进行编译

ld: warning: ignoring file /Volumes/Mac10.6/DHG/DS/src/Client/Library/boost/lib/osx/boost-1_53/libboost_date_time-mt.a, file was built for archive which is not the architecture being linked (i386)

ld: warning: ignoring file /Volumes/Mac10.6/DHG/DS/src/Client/Library/boost/lib/osx/boost-1_53/libboost_filesystem-mt.a, file was built for archive which is not the architecture being linked (i386)

ld: warning: ignoring file /Volumes/Mac10.6/DHG/DS/src/Client/Library/boost/lib/osx/boost-1_53/libboost_system-mt.a, file was built for archive which is not the architecture being linked (i386)

ld: warning: ignoring file /Volumes/Mac10.6/DHG/DS/src/Client/Library/boost/lib/osx/boost-1_53/libboost_thread-mt.a, file was built for archive which is not the architecture being linked (i386)

Undefined symbols for architecture i386:
  "boost::system::generic_category()", referenced from:
      ___cxx_global_var_init10 in OsxHidIoPipe.o
4

0 回答 0