打包上传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
在使用Conan进行打包上传时,由于使用了MinGW作为编译器,需要在export命令中添加compiler.libcxx参数,例如设置为libstdc++11。对于MSVC,则对应VisualStudio的配置。此问题涉及到编译器版本(如gcc8.1)和构建类型(Release)的指定。
2101

被折叠的 条评论
为什么被折叠?



