Re: gcc-4.1
On 9/12/06, Kevin Mark <kevin.mark@verizon.net> wrote:
On Mon, Sep 11, 2006 at 10:32:09PM +0800, Rocky Ou wrote:
> Hey,
>
> Thanks for your reply but it still not doing the work.
>
> lover@YUNNAN:~$ gcc good.c
> gcc: good.c: No such file or directory
> gcc: no input files
> lover@YUNNAN:~$
>
>
> Can any of you help me please?
Hi Rocky,
just to double check:
gcc is a C compiler
the basic use is:
gcc myprog.c
where myprog.c is a C program, not an empty or non-existant file, and
the file name ends in .c as this extension implies that it is C source
code.
would it be possible to show us the output of 'ls -l good.c'?
would it be possible to show us the contents of the good.c file?
cheers,
Kev
--
| .''`. == Debian GNU/Linux == | my web site: |
| : :' : The Universal | debian.home.pipeline.com |
| `. `' Operating System | go to counter.li.org and |
| `- http://www.debian.org/ | be counted! #238656 |
| my keysever: pgp.mit.edu | my NPO: cfsg.org |
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQFFBcUnv8UcC1qRZVMRAtcjAJ4pyzQ6j8Gwn/ia+6cyG3wPqvFs3wCfY9aG
IkpS2DamK0Akz+Rbr3oMols=
=4VCD
-----END PGP SIGNATURE-----
Hey all here it is
lover@YUNNAN:~$ ls -l c_0912.c
-rw-r--r-- 1 lover lover 103 2006-09-12 10:58 c_0912.c
lover@YUNNAN:~$ more c_0912.c
#include <iostream>
using namespace std;
int main()
{
out<<"Hey, YOU:) I'm good"\n;
cin.get();
}
lover@YUNNAN:~$ gcc c_0912.c -o test
c_0912.c:1:20: error: iostream: No such file or directory
c_0912.c:3: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â
before ânamespaceâ
c_0912.c: In function âmainâ:
c_0912.c:7: error: âoutâ undeclared (first use in this function)
c_0912.c:7: error: (Each undeclared identifier is reported only once
c_0912.c:7: error: for each function it appears in.)
c_0912.c:7: error: stray â\â in program
c_0912.c:7: error: expected â;â before ânâ
c_0912.c:8: error: âcinâ undeclared (first use in this function)
It seem gcc still not doing the job because os some missing stuff.
Can any of you help me out please?
Thanks a lot in advance!
Rocky
Reply to:
- References:
- gcc-4.1
- From: "Rocky Ou" <rocky2winnie@gmail.com>
- Re: gcc-4.1
- From: Ron Johnson <ron.l.johnson@cox.net>
- Re: gcc-4.1
- From: "Rocky Ou" <rocky2winnie@gmail.com>
- Re: gcc-4.1
- From: Kevin Mark <kevin.mark@verizon.net>