存档存在问题,该存档不是C中链接的体系结构(x86_64)
Issue with archive which is not the architecture being linked (x86_64) in C
当我在我试图构建的这个程序上运行make时,我会收到以下警告:
ld: warning: ignoring file ../lib/libiptools.a, file was built for archive which is not the architecture being linked (x86_64)
ld: warning: ignoring file ../lib/libmpeg.a, file was built for archive which is not the architecture being linked (x86_64)
然后它显然无法使用以下代码进行编译:
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [iptool] Error 1
我只是很难弄清楚如何修改我的make文件并为此进行正确编译,因为我不熟悉档案。任何建议都很感激,因为我确信我错过了一些简单的东西。我正在使用Mac OS X Mountain Lion。
libiptools.a和libmpeg.a是为32位编译的,但项目的其余部分是为64位编译的。找到这些库的64位版本,或者编译为32位版本。
相关文章:
- vscode g++链路故障:体系结构x86_64的未定义符号
- clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用) - 体系结构的未定义符号 x86_64:
- 使用 trie 数据结构链接不同类型的信息
- 体系结构x86_64的未定义符号:链接器错误
- C++标准是否定义了结构中成员函数的函数内定义是否必须具有静态链接?
- C++ XCODE ld:找不到体系结构x86_64 clang 的符号:错误:链接器命令失败,退出代码为 1(使用 -
- C++编译错误:ld:找不到体系结构x86_64 clang 的符号:错误:链接器命令失败,退出代码为 1(使用 -v
- CLang++ 链接器未定义的符号用于体系结构x86_64
- ld:找不到体系结构x86_64 clang 的符号:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)
- OpenCV格式化程序类和Mat对象的cout产生链接器错误:体系结构x86_64的未定义符号:libopencv_co
- 为存档而构建的静态库,该存档不是要链接的体系结构(x86_64)
- 体系结构x86_64的未定义符号,链接器命令失败
- OpenMP Mac OSX Lion c++ 链接器错误 体系结构的未定义符号 x86_64:"_omp_get_thread_num"
- 链接错误:Xcode 5 的体系结构x86_64未定义引用
- 体系结构的未定义符号x86_64引用链接器错误
- 体系结构x86_64的未定义符号,链接器命令失败,退出代码为 1
- 存档存在问题,该存档不是C中链接的体系结构(x86_64)
- POCO链接错误,OS X 10.11.2上体系结构x86_64的未定义符号
- 如何在结构向量内部生成结构链接列表
- g++:Mac OS X上的链接器问题-体系结构x86_64的未定义符号