QT安装好之后测试helloworld,在QT creater界面可以运行程序,如下图:

无法定位程序输入点 _ZNSt15_exception_ptr13exception_ptrC1ERKS0_于动态链接库libstdc++-6.dll上

但是运行工程目录D:\QT_workspace\build-helloworld-Desktop_Qt_5_10_1_MinGW_32bit-Debug\debug路径下的helloworld.exe时,出现以下情况:

无法定位程序输入点 _ZNSt15_exception_ptr13exception_ptrC1ERKS0_于动态链接库libstdc++-6.dll上

查阅相关资料,发现应该是之前安装过其它版本的MINGW,且该版本的MINGW在系统环境变量中的位置靠前,所以.exe文件无法定位到准确的libstdc++-6.dll文件,导致了以上错误。

解决办法
在系统环境变量PATH中寻找类似“%MINGW_HOME%\bin”的语句,剪切该语句放在PATH变量的最后,形如:
无法定位程序输入点 _ZNSt15_exception_ptr13exception_ptrC1ERKS0_于动态链接库libstdc++-6.dll上

再次运行helloworld.exe:
无法定位程序输入点 _ZNSt15_exception_ptr13exception_ptrC1ERKS0_于动态链接库libstdc++-6.dll上

相关文章:

  • 2022-01-22
  • 2021-11-27
  • 2022-01-11
  • 2021-10-21
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2021-04-05
猜你喜欢
  • 2021-12-07
  • 2022-01-19
  • 2021-11-02
  • 2022-01-25
  • 2022-02-26
  • 2022-01-10
相关资源
相似解决方案