如何修复Eclipse C++运行错误“程序文件不存在。”

问题描述 投票:0回答:1

我正在尝试在 Eclipse 中运行

Hello World
C++ 程序。它显示
Building Test Debug
然后
Launching Test Debug has encountered a problem. Program file doesn't exist.
是否因为缺少某些必需的文件?我如何获得这些文件?我一直在使用MinGW。

c++ eclipse mingw mingw-w64
1个回答
0
投票

我转到程序二进制文件所在的

Debug
文件夹并运行它。它需要
libgcc_s_dw2-1.dll
libstdc++-6.dll
libwinpthread-1.dll
才能运行。因此,我使用
Project
->
Properties
->
C/C++Build
->
Settings
->
Tool Settings tab
->
linker
->
Libraries
将这些库添加到 Eclipse 中。我添加了 MinGW 的库。现在可以用了!

© www.soinside.com 2019 - 2024. All rights reserved.