delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/06/24/16:29:02

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: Chris Faylor <cgf AT cygnus DOT com>
Date: Sat, 24 Jun 2000 16:28:29 -0400
To: cygwin <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: [Q]STL vector with -mno-cygwin
Message-ID: <20000624162829.C7325@cygnus.com>
Reply-To: cygwin AT sourceware DOT cygnus DOT com
Mail-Followup-To: cygwin <cygwin AT sourceware DOT cygnus DOT com>
References: <395501E8 DOT D4C90678 AT mbox DOT kyoto-inet DOT or DOT jp>
Mime-Version: 1.0
User-Agent: Mutt/1.2i
In-Reply-To: <395501E8.D4C90678@mbox.kyoto-inet.or.jp>; from tantaka@mbox.kyoto-inet.or.jp on Sun, Jun 25, 2000 at 03:46:00AM +0900

On Sun, Jun 25, 2000 at 03:46:00AM +0900, Hidekuni Annaka wrote:
>Date: Sun, 25 Jun 2000 03:46:00 +0900
>From: Hidekuni Annaka <tantaka AT mbox DOT kyoto-inet DOT or DOT jp>
>To: cygwin <cygwin AT sourceware DOT cygnus DOT com>
>Subject: [Q]STL vector with -mno-cygwin
>
>Hello everyone.I'm a cygwin beginner.
>
>With old cygwin(b20.1),we must specify extra include(-I) or library(-L)
>path with -mno-cygwin flag.
>
>http://sourceware.cygnus.com/ml/cygwin/2000-06/msg00938.html
>Recentry in above article,I see following sentence.
>
>- No more "impure_ptr" errors when compiling with -mno-cygwin.
>  (After exhaustive debugging)
>
>So, I got latest net release and I tried to compile
>----------------------------------
>#include <vector>
>
>int main(int argc,char** argv){
>  vector<int> vec;
>  vec.push_back();
>}
>----------------------------------
>g++ -mno-cygwin foo.cc
>
>But,I get following error messages.
>-------------------------------------------
>/usr/lib/libstdc++.a(iostream.o): In function `skip_ws(streambuf *)':
>/cygnus/netrel/src/gcc-2.95.2-2/libio/iostream.cc:66: undefined
>reference to `_imp___ctype_'
>
>I'm misunderstanding? What should I do any other?

Apparently, yes, you are misunderstanding.  The word "impure_ptr" is not the
same as "_imp___ctype" despite sharing several letters.

Despite the words in the release notice, you are apparently using an older
version of cygwin with a newer version of gcc.  Update your cygwin DLL
release.  I.e., do a "setup cygwin" in an empty directory.

The error you're getting is from attempting to link a B20.1 libcygwin.a
library with more recent objects.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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