conan xxx.a: error adding symbols: File format not recognized

一般是编译器不行:
xxx.a: error adding symbols: File format not recognized

检查gcc版本,比如我开始装了gcc 11.5,但是conan不支持gcc 11.5,所以写这个配置的时候最好把小标号加上。

[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=7.5
compiler.libcxx=libstdc++11
build_type=Release
[options]
[build_requires]
[env]

猜你喜欢

转载自blog.csdn.net/x1131230123/article/details/132565335
今日推荐