Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" 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 Content-Type: text/plain; format=flowed Message-ID: 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/