但是,当我在 Run 一个最简单的 Hello World 程序时,Eclipse 也报错:
An internal error occurred during: "Launching"。
在 console 中看到的错误信息如下:
代码: 全选
**** Build of configuration Debug for project cpp_learning ****
make -k all
make: *** 没有规则可以创建“cpp_learning”.需要的目标“hello_world.o”
Building file: ../testing/hello_world.cpp
Invoking: GCC C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"testing/hello_world.d" -MT"testing/hello_world.d" -o"testing/hello_world.o" "../testing/hello_world.cpp"
Finished building: ../testing/hello_world.cpp
所使用的程序如下:
代码: 全选
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World!\n";
return 0;
}
谢谢!