问题
程序编译后,运行时,弹出由于找不到“libgcc_s_dw2-1.dll”,无法继续执行代码…
当时以为是缺少什么VS运行库呢,然后就在电脑-设置-应用里浏览一遍自己装的VS运行库,发现很正常呀。我就在Everything工具搜索以下本地电脑里的文件,还发现真的有这些库文件,然后COPY放到程序文件夹里,运行,然并L。
我查看了一下自己在构建的时候,选择的构建套件,发现用的构建套件并不是自己在装QT配置环境变量时用的构建套件。
为了确认是不是这个problem,我就在高级系统设置-环境变量-PATH添加了D:\Qt\Qt5.9.3\5.9.3\mingw53_32\bin这个bin目录。
回到程序文件夹,将生成文件删除,重新编译。
再一次运行exe程序。
可。