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

Re: C++ CIN and COUT



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

On Mon, 28 Oct 2002 13:55:19 -0800, ajwang sprynet com wrote:

> >Can anyone take this little program in C++ and try to comile, link
> >and run it in Linux? If it works, let me know which library has the
> >CIN and COUT. I can compile it with -c option with gcc. But it just
> >quit linking.
> >
> The messages were "undefined reference to std::cin", etc.
> My Linux machine is running RedHat 8.0.
> Mandrake 9.0 does not work either.
> I used this command to compile and link it:
> *gcc myProgram.cpp -o myProgram*

Use g++ not gcc.

- -- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE9vcOl0iMVcrivHFQRAuIEAJ44TvKSddq+6qNRVxzVMMS7P4JR9QCfUF0g
gLmOWikG8IdVAcKE0ra/bjk=
=j3w3
-----END PGP SIGNATURE-----





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