| delorie.com/archives/browse.cgi | search |
| 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:to:from:subject:date:message-id:mime-version | |
| :content-type:content-transfer-encoding; q=dns; s=default; b=E+e | |
| 2+n/XE54qGZVm93WdvhrCHeKA6jO+a8Hs5AFp8XsUl1sEchmFlVD6mSczMQXNe9r | |
| UHPqzvwwX0rwqrRcwUyiRcyD+dDREs36IvQTFUtJmljLKQsnxoRm/YIyWsIzZs7c | |
| GY1g40555Z/oLHzG1+JBik0jK3NaONeUnC8CBmro= | |
| 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:to:from:subject:date:message-id:mime-version | |
| :content-type:content-transfer-encoding; s=default; bh=lmCMhPOJE | |
| DIXBVTOL4t4oce4GLw=; b=YImvpaCcp8XHwXq9V8RjyhLjT8ZaET/jBocVDQkdr | |
| E0R9KM31DXfeRf8HzVmiFZCHTtMifF2a08u/O/Wt6ITGeTQOpFIuJv6urxJOyTrv | |
| sX7Y6GZDK6lF8SCngxSNapmQnuWksAnv/29pPlFI0WWu9begdTX7G2vfhpe0rAPn | |
| bE= | |
| 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.2 required=5.0 tests=AWL,BAYES_00,FSL_HELO_BARE_IP_2,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 |
| X-HELO: | plane.gmane.org |
| To: | cygwin AT cygwin DOT com |
| From: | Mark Ziesemer <online AT mark DOT ziesemer DOT com> |
| Subject: | =?utf-8?b?c3RkOjp0b19zdHJpbmc=?= missing under gcc 4.8.3? |
| Date: | Mon, 5 Jan 2015 17:08:41 +0000 (UTC) |
| Lines: | 63 |
| Message-ID: | <loom.20150105T175419-513@post.gmane.org> |
| Mime-Version: | 1.0 |
| User-Agent: | Loom/3.14 (http://gmane.org/) |
| X-IsSubscribed: | yes |
$ cat test.cpp
#include <string>
int main()
{
std::to_string(0);
return 0;
}
# Reference:
http://stackoverflow.com/questions/12975341/to-string-is-not-a-member-of-std-says-so-g
$ g++ -std=c++1y test.cpp
test.cpp: In function ‘int main()’:
test.cpp:5:2: error: ‘to_string’ is not a member of ‘std’
std::to_string(0);
^
# I am not using any of MinGW or its packages, just gcc-g++ (4.8.3-5). I've
seen lots of references about this concerning it being broken in various
versions of MinGW - but am having a hard time finding anything about this
concerning simply gcc / g++.
# The exact same code and compile works without issue on a RHEL 7 x64 box:
gcc version 4.8.2 20140120 (Red Hat 4.8.2-16) (GCC)
$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-cygwin/4.8.3/lto-wrapper.exe
Target: x86_64-pc-cygwin
Configured with:
/cygdrive/i/szsz/tmpp/gcc_old/gcc-4.8.3-5.x86_64/src/gcc-4.8.3/configure
--srcdir=/cygdrive/i/szsz/tmpp/gcc_old/gcc-4.8.3-5.x86_64/src/gcc-4.8.3
--prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--libexecdir=/usr/libexec --datadir=/usr/share --localstatedir=/var
--sysconfdir=/etc --libdir=/usr/lib --datarootdir=/usr/share
--docdir=/usr/share/doc/gcc --htmldir=/usr/share/doc/gcc/html -C
--build=x86_64-pc-cygwin --host=x86_64-pc-cygwin --target=x86_64-pc-cygwin
--without-libiconv-prefix --without-libintl-prefix --libexecdir=/usr/lib
--enable-shared --enable-shared-libgcc --enable-static
--enable-version-specific-runtime-libs --enable-bootstrap
--enable-__cxa_atexit --with-dwarf2 --with-tune=generic
--enable-languages=ada,c,c++,fortran,lto,objc,obj-c++ --enable-graphite
--enable-threads=posix --enable-libatomic --enable-libgomp --disable-libitm
--enable-libquadmath --enable-libquadmath-support --enable-libssp
--enable-libada --enable-libgcj-sublibs --disable-java-awt --disable-symvers
--with-ecj-jar=/usr/share/java/ecj.jar --with-gnu-ld --with-gnu-as
--with-cloog-include=/usr/include/cloog-isl --without-libiconv-prefix
--without-libintl-prefix --with-system-zlib --enable-linker-build-id
Thread model: posix
gcc version 4.8.3 (GCC)
$ uname -a
CYGWIN_NT-6.3 ******** 1.7.32(0.274/5/3) 2014-08-13 23:06 x86_64 Cygwin
# (Windows 8.1 x64)
I can provide a cygcheck output if required (would just need to do a fair
amount of scrubbing, first).
Thanks!
--
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |