delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/18/08:05:10

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
To: cygwin AT cygwin DOT com
X-Injected-Via-Gmane: http://gmane.org/
Path: not-for-mail
From: "Xavier Pianet" <xavier DOT pianet AT lusis DOT fr>
Subject: Re: gcc 3.2 string<wchar_t> link problem
Date: Mon, 18 Nov 2002 14:05:51 +0100
Organization: LUSIS
Lines: 87
Message-ID: <araod8$tfm$1@main.gmane.org>
References: <3DD82975 DOT 1040600 AT nigels DOT com>
NNTP-Posting-Host: 81.1.37.98
X-Trace: main.gmane.org 1037624552 30198 81.1.37.98 (18 Nov 2002 13:02:32 GMT)
X-Complaints-To: usenet AT main DOT gmane DOT org
NNTP-Posting-Date: Mon, 18 Nov 2002 13:02:32 +0000 (UTC)
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700

Hi there,

See my post few weeks ago (29/10/2002)
subject : conflicting types for `typedef struct mbstate_t`(was link troubles
with wcslen)

also the one from zhang le on 27/10/2002
  missing wcsncmp,wcscpy,wcsncpy and more...

or a search in the archives on wcslen

no one on the list acknowledged the pb (cfg ?) and i noticed that gcc-3.2-2
probably solved issue 2) of my post because it had the following comment
(msg [ANNOUNCEMENT] Updated: gcc-3.2-2 10/11/2002):
'However, the only noticeable change from the last release was an attempt to
correctly define mbstate_t.'

I'm positive that wcslen is in newlib but i'm not sure for
wcsncmp,wcscpy,wcsncpy as i didn't needed them a that time.

Xavier

"Nigel Stewart & Fiona Smith" <nigels AT nigels DOT com> a écrit dans le message
news: 3DD82975 DOT 1040600 AT nigels DOT com...
> Hello all,
>
> Having happily upgraded my Cygwin to include gcc 3.2, I've
> encountered a show-stopper: The linker can't resolve symbols
> involving wide C++ strings.  Here is an example:
>
> #include <string>
> #include <iostream>
> using namespace std;
>
> int main(int argc,char *argv[])
> {
>         std::string<wchar_t> test;
> }
>
> -----------------
>
> $ g++ test.cpp
> /cygdrive/c/DOCUME~1/nigels/LOCALS~1/Temp/ccHP4AMl.o(.text+0x25):test.cpp:
> undefined reference to `std::basic_string<wch
> ar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>
>  >::basic_string[in-charge]()'
> /cygdrive/c/DOCUME~1/nigels/LOCALS~1/Temp/ccHP4AMl.o(.text+0x30):test.cpp:
> undefined reference to `std::basic_string<wch
> ar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>
>  >::~basic_string [in-charge]()'
> collect2: ld returned 1 exit status
>
> ---------------------------
>
> Any hints, suggestions, or duh-read-the FAQ responses, appreciated.
>
> Note that the following compiles & links:
>
> int main(int argc,char *argv[])
> {
>         std::string<double> test;
> }
>
> ----------------
>
> $ gcc -v
> Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/specs
> Configured with: /netrel/src/gcc-3.2-3/configure
> --enable-languages=c,c++,f77,java --enable-libgcj --enable-threads=posi
> x --with-system-zlib --enable-nls --without-included-gettext
> --enable-interpreter --disable-sjlj-exceptions --disable-ve
> rsion-specific-runtime-libs --enable-shared --build=i686-pc-linux
> --host=i686-pc-cygwin --target=i686-pc-cygwin --enable
> -haifa --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc
> --libdir=/usr/lib --includedir=/nonexistent/include --libexecd
> ir=/usr/sbin
> Thread model: posix
> gcc version 3.2 20020927 (prerelease)
>
> Cheers,
>
> Nigel Stewart
>
>
>





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