打包上传conan时,遇到这个问题
询问大佬后,发现我的编译器用的MinGW,所以需要在export命令后面添加compiler.libcxx的参数。
conan export-pkg . 包名 -s os=Windows -s arch=x86_64 -s compiler=gcc -s compiler.version=8.1 -s compiler.libcxx=libstdc++11 -s build_type=Release --force
MSVC用的Visual Studio,MinGW用的gcc,所以compiler这里的参数是gcc