delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/09/24/12:55:32

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <ed4892840709240955t1cfd25d0yf7cf64b481c4b060@mail.gmail.com>
Date: Tue, 25 Sep 2007 00:55:10 +0800
From: "Steven Woody" <narkewoody AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: what i need to compile c++/std programs?
In-Reply-To: <000001c7fecb$0a1da680$2e08a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
References: <ed4892840709240936ga983f0r2ecc6dd7afb8d2d1 AT mail DOT gmail DOT com> <000001c7fecb$0a1da680$2e08a8c0 AT CAM DOT ARTIMI DOT COM>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

On 9/25/07, Dave Korn <dave DOT korn AT artimi DOT com> wrote:
> On 24 September 2007 17:37, Steven Woody wrote:
>
> > hi,
> >
> > i am compiling a program which used std stuffs, but results in a lot
> > of error messages, such as  below:
> >
> > /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/locale_facets.tcc:2498:
> > undefined reference to `std::basic_string<cha
> > r, std::char_traits<char>, std::allocator<char> >::size() const'
> > /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/locale_facets.tcc:2507:
> > undefined reference to `std::basic_string<cha
> > r, std::char_traits<char>, std::allocator<char> >::operator[](unsigned
> > int) const'
> > /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/locale_facets.tcc:2509:
> > undefined reference to `std::basic_string<cha
> > r, std::char_traits<char>, std::allocator<char> >::operator[](unsigned
> > int) const'
> > /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/locale_facets.tcc:2512:
> > undefined reference to `std::basic_string<cha
> > r, std::char_traits<char>, std::allocator<char> >::operator[](unsigned
> > int) const'
> >
> > i think some std library was not linked in, but i dont know how to :-(
>
>
>   Heh, didn't we just do this one?  You need to invoke the compiler as "g++",
> not "gcc", which tells it to link in the C++ support by default.
>

thank you! i actually did a typo in my Makefile :-)

-- 
woody

then sun rose thinly from the sea and the old man could see the other
boats, low on the water and well in toward the shore, spread out
across the current.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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