分页: 1 / 1

Ubuntu 8.10 下 Eclipse + CDT 提示“Lauching”错误

发表于 : 2008-12-08 22:56
kfc315
我的系统是 Ubuntu 8.10(由 8.04 升级而来),前些天为了进行一些 C++ 编程的练习安装了 Eclipse + CDT。安装方法是在新立得中先安装 eclipse,然后安装 eclipse-cdt。(gcc、build-essential 等也已安装。)

但是,当我在 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
(我的 Project 名字叫做 cpp_learning,源代码文件叫做 hello_world.cpp。)
所使用的程序如下:

代码: 全选

    #include <iostream>
    using namespace std;
    int main()
    {
       cout << "Hello World!\n";
       return 0;
    }
请问这个问题可能的原因是什么?有什么解决方法么?
谢谢!

Re: Ubuntu 8.10 下 Eclipse + CDT 提示“Lauching”错误

发表于 : 2008-12-08 23:08
gong
你的工程类型是什么,是自己写的makrfile吗

Re: Ubuntu 8.10 下 Eclipse + CDT 提示“Lauching”错误

发表于 : 2008-12-09 13:06
kfc315
gong 写了:你的工程类型是什么,是自己写的makrfile吗
工程类型是 Managed Make C++ Project,这种类型是在保存时自动 make 的是么?

Re: Ubuntu 8.10 下 Eclipse + CDT 提示“Lauching”错误

发表于 : 2008-12-09 19:54
gong
这种东西是按照你的工程设置,自动在编译的时候生成makefile.

你去官方下最新的试试,源里面的不好。

Re: Ubuntu 8.10 下 Eclipse + CDT 提示“Lauching”错误

发表于 : 2008-12-09 23:27
kfc315
gong 写了:这种东西是按照你的工程设置,自动在编译的时候生成makefile.

你去官方下最新的试试,源里面的不好。
好的,我这样试一下。谢谢您 :)

Re: Ubuntu 8.10 下 Eclipse + CDT 提示“Lauching”错误

发表于 : 2008-12-09 23:54
kfc315
在官网下载了新版的 Eclipse,这次显示的是 Binary not found,还是不可以。

Re: Ubuntu 8.10 下 Eclipse + CDT 提示“Lauching”错误

发表于 : 2009-08-01 16:51
rosx
kfc315 写了:在官网下载了新版的 Eclipse,这次显示的是 Binary not found,还是不可以。
我也是
求达人解答 :em21 :em21

Re: Ubuntu 8.10 下 Eclipse + CDT 提示“Lauching”错误

发表于 : 2009-08-01 23:55
baiwujushi
如果不是你自己写makefile的话
你建立工程的时候别建 standard 的工程 去建Managed Make C++ Project的工程就可以了

Re: Ubuntu 8.10 下 Eclipse + CDT 提示“Lauching”错误

发表于 : 2009-08-07 21:59
andrew72
建议去学好Makefile, 那样的话对你在linux上编程可以一劳永逸, eclipse+cdt这个只是工具而已, 一样也可以通过查看其中的makefile就知道错误的, 练习的话不要用这么"高级"的玩意~ 推荐VIM, 一样代码高亮, 自动代码完成