libboost_date_time-mt.a,文件是为归档而构建的,而不是被链接的体系结构(i386)

时间:2013-05-23 12:54:50

标签: xcode macos boost

我下载了升级库1_53并按照步骤编译并在我的MA3 Pro系统Mac OS 10.7.4上在核心i7机器上编译。

  1. ./ bootstrap.sh
  2. .b2
  3. 这些命令成功构建了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
    

0 个答案:

没有答案