From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12359 invoked by alias); 12 Nov 2013 02:38:33 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 12332 invoked by uid 89); 12 Nov 2013 02:38:32 -0000 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 Received: from Unknown (HELO mail-ob0-f176.google.com) (209.85.214.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 12 Nov 2013 02:38:31 +0000 Received: by mail-ob0-f176.google.com with SMTP id wp4so4009452obc.35 for ; Mon, 11 Nov 2013 18:38:23 -0800 (PST) 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 Received: by 10.182.64.17 with HTTP; Mon, 11 Nov 2013 18:38:03 -0800 (PST) In-Reply-To: References: <52815780.2010006@gmail.com> <528159F8.2070307@gmail.com> From: Yucong Sun Date: Tue, 12 Nov 2013 02:38:00 -0000 Message-ID: Subject: Re: C++11 program link failure under GCC 4.8.2-1 To: cygwin Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2013-11/txt/msg00231.txt.bz2 (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 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 wrote: >> Yes, the sha1 matches. >> >> sunyc@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@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@gmail.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