Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Mon, 12 Feb 2001 23:00:01 +1300 From: Dan Plimak To: cygwin AT cygwin DOT com Subject: Re: Trying to compile a simple C++ program Message-ID: <20010212230001.A5692@systematik.co.nz> References: <001201c0940b$08c8c3a0$ac07f8d4 AT 1> <20010212225717 DOT A5592 AT systematik DOT co DOT 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