我是编程新手,在Cocoa应用程序中链接到Boost库时遇到了问题。
我从XCode中的一个C++应用程序链接到Boost库,它工作得很好。但是,在我现在使用的Cocoa应用程序中,同样链接到Boost库不起作用,并抛出错误:
ld: warning: in /path/to/project/build/Debug-iphonesimulator/libboost_thread.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
这似乎是因为C++