QT5 Creator (Mingw编译器) 调用VS2019 (阿里云 oss C++库) 报错的解决方法
方法就是不要用VS2019编译,要用MINgw32编译。
编译命令如下:
cmake -G "MinGW Makefiles" ^-DCMAKE_MAKE_PROGRAM=D:\qt\Tools\mingw810_32\bin\mingw32-make.exe ^-DCMAKE_C_COMPILER=D:\qt\Tools\mingw810_32\bin\gcc.exe ^-DCMAKE_CXX_COMPILER=D:\qt\Tools\mingw810_32\bin\/g++.exe ^..
编译成功,报错不用管,加入qt工程:
INCLUDEPATH += \alibabacloud-oss-cpp-sdk/includeLIBS += -L$$PWD/alibabacloud-oss-cpp-sdk/lib -lssleay32 -llibeay32
LIBS += -L$$PWD/alibabacloud-oss-cpp-sdk/lib -lalibabacloud-oss-cpp-sdkLIBS += $$PWD/alibabacloud-oss-cpp-sdk/lib/libalibabacloud-oss-cpp-sdk.a
问题解决。