红联Linux门户
Linux帮助
当前位置: 红联Linux门户 > Ubuntu

ubuntu 7.10 -- GCC can't work!

发布时间:2008-08-10 16:53:27来源:红联作者:qwpsmile
Hi, buddies,
I meet some troubles after installing ubuntu 7.10, it seems that GCC 4.1.3 just cannot work.
I tried other versions of GCC and ubuntu, but problems still exist:
e.g., I have a file "test.c"
---------------------------------
#include
#include

int main()
{
printf("Howdy, world!\n");
return(0);
}
---------------------------------
then use cc to compile test.c,
cc test.c
a.out is produced, by now, gcc works quite fine. but at last when I tried to execute a.out, these information is printed out:
a.out: command not found, why?
please give some help, thank you.
文章评论

共有 4 条评论

  1. rtl 于 2008-08-13 20:55:59发表:

    是不是??包??上

    apt-get install libc6-dev

    ?上看看

  2. Arthur1989 于 2008-08-13 13:25:39发表:

    哈哈,只用过VC6.0

  3. renewjoy 于 2008-08-11 13:48:58发表:

    yes.
    Do it yourself and you will find it.

  4. qwpsmile 于 2008-08-10 17:08:11发表:

    :0wl;l1
    I find the answer: simply use command ./a.out, this procedure can be executed!
    Yeah!