| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: Trying to compile a simple C++ program |
| References: | <001201c0940b$08c8c3a0$ac07f8d4 AT 1> |
| <20010212225717 DOT A5592 AT systematik DOT co DOT nz> | |
| <20010212230001 DOT A5692 AT systematik DOT co DOT nz> | |
| From: | Andrew Markebo <flognat AT flognat DOT myip DOT org> |
| Date: | 11 Feb 2001 11:25:37 +0100 |
| In-Reply-To: | <20010212230001.A5692@systematik.co.nz> |
| Message-ID: | <m366ih349q.fsf@master.athome> |
| Lines: | 17 |
| User-Agent: | Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
| MIME-Version: | 1.0 |
/ Dan Plimak <danp AT systematik DOT co DOT nz> wrote:
| [...]
| $ gcc -lstdc++ -o a.exe a.cpp
Throw -lstdc++ at the end and finally on the third try everything will
work and the sun will shine and birds will sing and yah you know all
of that.
gcc -o a.exe a.cpp -lstdc++
Or you can do it the lazy-mans way, use g++ to compile c++ files, then
you don't need to worry about what extras you need to link in for c++
support.
g++ -o a.exe a.cpp -lstdc++
/Andy
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |