C++ usage

Brian D. McGrew brian@visionpro.com
Sat Nov 26 08:58:00 GMT 2005


#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



More information about the Gcc-help mailing list