Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Mon, 12 Feb 2001 23:00:01 +1300
From: Dan Plimak <danp@systematik.co.nz>
To: cygwin@cygwin.com
Subject: Re: Trying to compile a simple C++ program
Message-ID: <20010212230001.A5692@systematik.co.nz>
References: <001201c0940b$08c8c3a0$ac07f8d4@1> <20010212225717.A5592@systematik.co.nz>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20010212225717.A5592@systematik.co.nz>; from danp@systematik.co.nz on Mon, Feb 12, 2001 at 10:57:17PM +1300

On Mon, Feb 12, 2001 at 10:57:17PM +1300, Dan Plimak wrote:
> 
> You'll be wanting to add -lstdc++ to the command line, as in:
> 
> $ gcc -lstdc++ a.exe a.cpp
> 

Silly me, missed the '-o' switch. The command line should be:

$ gcc -lstdc++ -o a.exe a.cpp

Ashamedly,

  -- danp

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

