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

Re: gcc-4.1



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09/11/06 22:11, Rocky Ou wrote:
> On 9/12/06, Kevin Mark <kevin.mark@verizon.net> wrote:
>> On Mon, Sep 11, 2006 at 10:32:09PM +0800, Rocky Ou wrote:
[snip]
> 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
[snip]

The c compiler is not the c++ compiler.  That would be g++.

You *really* need to google around for a tutorial or HOWTO on
software development in the Unix environment.

BTW, I think there's a couple of bugs in your code.

  $ g++ c_0912.c
  c_0912.c:7: error: stray '\' in program
  c_0912.c: In function 'int main()':
  c_0912.c:7: error: 'out' was not declared in this scope
  c_0912.c:7: error: expected `;' before 'n'

When I put the \n inside the ", this was the result:

  $ g++ c_0912.c
  c_0912.c: In function 'int main()':
  c_0912.c:7: error: 'out' was not declared in this scope



- --
Ron Johnson, Jr.
Jefferson LA  USA

Is "common sense" really valid?
For example, it is "common sense" to white-power racists that
whites are superior to blacks, and that those with brown skins
are mud people.
However, that "common sense" is obviously wrong.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFBiiiS9HxQb37XmcRAvXmAJ9BQBYL0O+f2XcKVkw34XNwwOi/8gCfVjPs
/gDao1TPa/3SH5FCalIh/Lg=
=JunR
-----END PGP SIGNATURE-----



Reply to: