delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/11/11/21:39:05

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type; q=dns; s=default; b=fWBLRDd
weJtWqRq0PYlDD1K830z1lMFYqfHFQNT1q+cbwHRK1UoUNJGCvbZ0EOvuGoVsVsw
ml6bvYdueinT2oRRfibQDb/k1tCr3gw5tdA5DSoEACA/zbUkN5soPiukt5QuA0z9
EuiluxEfAI7wiAjG0vw+sUbO6e6QpiNg9Tcc=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type; s=default; bh=qd4KaRAaDAfVx
6c/yfNbPVxMd4I=; b=ooMQZZOU+g4HF0KaWwifZjVjs+Af2H0vdluOpGxVV4QNf
FxgqdWJKXdVNYed5g5y/p0adcnx1UhKk9zF3xLsNV/c3fCbxW8iVO6rwHGm1fT/6
QDtuKvM7SeioaUnzStoX42yrnZ76uqAhEdzcEE0SsNotucq7MzdjfBBTb8lfo8=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.9 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RDNS_NONE,SPF_PASS autolearn=no version=3.3.2
X-HELO: mail-ob0-f176.google.com
X-Received: by 10.60.103.106 with SMTP id fv10mr9329711oeb.44.1384223903561; Mon, 11 Nov 2013 18:38:23 -0800 (PST)
MIME-Version: 1.0
In-Reply-To: <CAJygYd2UqXD3e-iguMUB1FUNDmCVmC5D7b1=zHqMVs1kJ8-+qw@mail.gmail.com>
References: <CAJygYd3KQEhdFBAYO4ONumf=FMvjH1fuiqa4b2F0XGLPBNv2Hw AT mail DOT gmail DOT com> <52815780 DOT 2010006 AT gmail DOT com> <528159F8 DOT 2070307 AT gmail DOT com> <CAJygYd2H7tyjE73=EK2hdo2ZPvWtziU8sUkbgbo5crBtP3JRHQ AT mail DOT gmail DOT com> <CAJygYd2UqXD3e-iguMUB1FUNDmCVmC5D7b1=zHqMVs1kJ8-+qw AT mail DOT gmail DOT com>
From: Yucong Sun <sunyucong AT gmail DOT com>
Date: Mon, 11 Nov 2013 18:38:03 -0800
Message-ID: <CAJygYd1BJWemp7ZCY=2YKCnY8fCWPLnG3AbNQp3kO=JwR8RdxA@mail.gmail.com>
Subject: Re: C++11 program link failure under GCC 4.8.2-1
To: cygwin <cygwin AT cygwin DOT com>
X-IsSubscribed: yes

(forgot to say)

this program compile and links fine on g++ 4.6 ,4.7, 4.8 on ubuntu
,centos, freebsd etc without modification.

Cheers.

On Mon, Nov 11, 2013 at 6:33 PM, Yucong Sun <sunyucong AT gmail DOT com> wrote:
> I've tried on both 32bit and 64bit clean cygwin install, the result is
> same. Something is wrong with cygwin's gcc.
>
> my configure script by default uses g++ --std=c++11, this still have
> problem of " no snprintf " , after I replace all snprintf() with
> sprintf() , I've met the same linkage problem again.
>
> g++ --std=gnu++0x "fixes" the snprintf problem, but it still have same
> linkage problem.
>
> Any help will be much appreciated.
>
> Cheers.
>
> On Mon, Nov 11, 2013 at 3:37 PM, Yucong Sun <sunyucong AT gmail DOT com> wrote:
>> Yes, the sha1 matches.
>>
>> sunyc AT sunyc-wks /lib/gcc/i686-pc-cygwin/4.8.2
>> $ sha1sum.exe libstdc++.*
>> f4dfadfddade3aceaf4852cd5db31372ab7ef0d1 *libstdc++.a
>> 963e2a697c3a1a7d036d975b07f4c408bbd1cb2d *libstdc++.dll.a
>>
>> Also I couldn't find GLIB_xxx version number in libstdc++.a
>>
>> sunyc AT sunyc-wks /lib/gcc/i686-pc-cygwin/4.8.2
>> $ strings.exe libstdc++.a | grep GLIB
>> GLIBCXX_FORCE_NEW
>> GLIBCXX_FORCE_NEW
>> GLIBCXX_DEBUG_MESSAGE_LENGTH
>>
>> Cheers.
>>
>> On Mon, Nov 11, 2013 at 2:28 PM, JonY <10walls AT gmail DOT com> wrote:
>>> On 11/12/2013 06:17, JonY wrote:
>>>> On 11/12/2013 05:17, Yucong Sun wrote:
>>>>> Hi,
>>>>>
>>>>> I'm trying to compile a program under cygwin with latest gcc 4.8.2,
>>>>> the program compiles fine, but link failed. I'm suspecting this has
>>>>> something todo with libstdc++ but I couldn't find any document on how
>>>>> to check libstdc++ version (cygwin setup claim it is version 4.8.2
>>>>> already).
>>>>>
>>>>
>>>> I'm not sure either, could you ask gcc-help instead?
>>>>
>>>>
>>>
>>> 963e2a697c3a1a7d036d975b07f4c408bbd1cb2d *libstdc++.dll.a
>>> f4dfadfddade3aceaf4852cd5db31372ab7ef0d1 *libstdc++.a
>>>
>>> Is your sha1sum matching mine for 4.8.2?
>>>
>>>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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