delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/29/03:22:57

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
X-Originating-IP: [129.78.64.17]
From: "Gareth Pearce" <tilps AT hotmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: gcc with std::multimap
Date: Thu, 29 Aug 2002 07:22:47 +0000
Mime-Version: 1.0
Message-ID: <F89ERNxdONseL3UrDv00000f8f1@hotmail.com>
X-OriginalArrivalTime: 29 Aug 2002 07:22:47.0720 (UTC) FILETIME=[E020DA80:01C24F2C]



>  I'm using cygwin on win2k . And for a simple test that use std::multimap
>I receive some undefined like:  <<   undefined reference to 'cout'    >> 
>when I compile with gcc. I every think
>is fine if I compile with c++.  What is the difference ???
>
>  (   I have try included every think : iostream, stdlib, and of course map 
>and algorithm  header but the  1 exit estatus
>still.  )

This is a gcc question - not a cygwin question - also it is answered in the 
message archives.  Using gcc with c++ code will be unlikely to work, 
certainly if you are using anything from the standard c++ libraries.  the 
std c++ libraries are Not linked  in when you use gcc, but are with c++/g++. 
  There is also sometimes other differences between gcc and using g++, but 
the main one is that it does not add the standard c++ library to the link 
line.

Gareth

_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019