delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
From: | "Dockeen" <dockeen AT mchsi DOT com> |
To: | <cygwin AT cygwin DOT com> |
Subject: | RE: linking problem, please help |
Date: | Mon, 23 Dec 2002 09:10:32 -0600 |
Message-ID: | <NCBBLKKJGBJOLDFMCKFPMECGCBAA.dockeen@mchsi.com> |
MIME-Version: | 1.0 |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
Importance: | Normal |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2800.1106 |
Well, in your code: > >#include<iostream> > > > > int main() > > { > > cout<<"\n hello world"; > > return 0; > > } I see one thing wrong. The cout functions name comes from the standard namespace, so you either have to add: using namespace std; or qualify the name, i.e. std::cout I don't know if that is causing your specific problem, but I would give it a shot. When I am compiling test code by the way, I will just do g++ test.cpp and let it throw my code into a.exe, but I am also lazy. Wayne -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |