Qt 手动创建动态库

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/youshijian99/article/details/80574688

报错

Project ERROR: Cannot run compiler 'g++'. Maybe you forgot to setup the environment?

Error while parsing file E:\test\qt\src\libdll\libdll.pro. Giving up.

设置环境变量

D:\Qt\Qt5.9.3\Tools\mingw530_32\bin

手动编写 libdll.pro 文件,使用Qt打开





调用动态库




Linux 下生命令成动态库

qmake -o makefile libdll.pro        生成Makefike
make

猜你喜欢

转载自blog.csdn.net/youshijian99/article/details/80574688