www.delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, |
<http://sourceware.cygnus.com/ml/#faqs> | |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
Message-Id: | <199908042051.PAA08113@mercury.xraylith.wisc.edu> |
To: | "Namsuk Kim" <nskim AT wa DOT freei DOT net> |
cc: | cygwin AT sourceware DOT cygnus DOT com |
Subject: | Re: c++ compling error |
In-Reply-To: | Your message of "Wed, 04 Aug 1999 14:22:35 PDT." |
<000301bedebf$79723440$c292a2d1 AT nskim> | |
Date: | Wed, 04 Aug 1999 15:51:38 -0500 |
From: | Mumit Khan <khan AT xraylith DOT wisc DOT EDU> |
"Namsuk Kim" <nskim AT wa DOT freei DOT net> writes: > hi, > > I have just installed gygnus. However, when I test gcc with a simple "hello > world" gives "undefined reference to 'cout' error. > > #include <iostream> > void main() ^^^^ int is the only allowed return type. ^^^^ > { > cout << "hello world\n"; > } > > mingw32 gives the same result. Version doesn't seem to be the matter. > Waiting for your help. Use c++, not gcc; and, while you're at it, fix your code to change void->int for main() return type (see any decent C++ text, such as Stroustrup 3rd Ed.). Regards, Mumit -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |