This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: C++ usage
- From: "Brian D. McGrew" <brian at visionpro dot com>
- To: Jörg Gautschi <j dot gautschi at tiscali dot ch>, <gcc-help at gcc dot gnu dot org>
- Date: Mon, 21 Nov 2005 09:39:15 -0800
- Subject: RE: C++ usage
#include <iostream>
int
main(int argc, char *argv[])
{
std::cout << "C++ Test" << std::endl;
Return(0);
}
#_ g++ test.c -o test
Use g++ to compile c++ programs as opposed to gcc to compile straight c programs.
(NOTE: all is lowercase, even if outlook did capitalize something for me).
-brian
Brian D. McGrew { brian@visionpro.com || brian@doubledimension.com }
--
> Those of you who think you know it all,
really annoy those of us who do!
-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On Behalf Of Jörg Gautschi
Sent: Monday, November 21, 2005 9:18 AM
To: gcc-help@gcc.gnu.org
Subject: C++ usage
Hello
I am migrating from MS Windows to SUSE Linux 9.2. I am a beginner. And trying
to use the C++ Compiler (3.3.4), I only get error messages (see added
protocol gcc-test.pdf). The compiler not even "understands" the object cout.
Is there someone who can help me?
With kind regards
Joerg Gautschi, Lenzstrasse 31, CH-5734 Reinach AG, Switzerland