From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1692 invoked by alias); 18 May 2002 00:38:39 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 1639 invoked from network); 18 May 2002 00:38:33 -0000 Received: from unknown (HELO mailrelay1.inwind.it) (212.141.54.101) by sources.redhat.com with SMTP; 18 May 2002 00:38:33 -0000 Received: from quigonn.inwind.it (62.98.56.78) by mailrelay1.inwind.it (6.5.015) id 3CAA37A301FECEF5; Sat, 18 May 2002 02:38:32 +0200 Message-Id: <5.1.0.14.0.20020518023806.00bd3458@popmail.inwind.it> X-Sender: fwyzard@popmail.inwind.it Date: Fri, 17 May 2002 17:38:00 -0000 To: Mark Jenkins ,gcc-help@gcc.gnu.org From: Andrea 'Fyre Wyzard' Bocci Subject: Re: g++ help In-Reply-To: <3CE16804.EDC28D9F@gvrc.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-SW-Source: 2002-05/txt/msg00176.txt.bz2 At 14.39 14/05/2002 (GMT -0500), Mark Jenkins wrote: >Hi, > >I am new to g++ and need help compiling a simple program. >I have installed g++ on a unix, "sparc-sun-solaris2.7". > >Could some send me a sample make file and program, to >complie a g++ program. > >Also what should the CXX and CXXFLAGS environment variables >be set to? > >Trying to compile the following program: > >#include // you probably need to add here this line ... using namespace std; >int main() >{ // and change this // cout << "Hellow World!"; // to cout << "Hello World!" << endl; >return 0; >} ...and then compile with g++ fileame.cc -o filaname. running the executable ./filename should print Hello World! and exit (succesfully). >Thanks, > >Mark Jenkins HTH, fwyzard