[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: gcc-4.1



Rocky Ou wrote:

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


Others have given you good replies. I would add that do not name your output file (the executable) as "test". A "test" command already exists in Linux.

->HS



Reply to: