RE: C++ usage

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

 



#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@xxxxxxxxxxxxx || brian@xxxxxxxxxxxxxxxxxxx }
--
> Those of you who think you know it all,
  really annoy those of us who do! 

-----Original Message-----
From: gcc-help-owner@xxxxxxxxxxx [mailto:gcc-help-owner@xxxxxxxxxxx] On Behalf Of Jörg Gautschi
Sent: Monday, November 21, 2005 9:18 AM
To: gcc-help@xxxxxxxxxxx
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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux