www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=1.3 required=5.0 tests=AWL,BAYES_00,FORGED_HOTMAIL_RCVD2,SPF_HELO_PASS,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <23293465.post@talk.nabble.com> |
Date: | Wed, 29 Apr 2009 02:13:17 -0700 (PDT) |
From: | Casull <aphex001 AT hotmail DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: GCC 4.4.0 - Can't activate threading support |
In-Reply-To: | <49F817C2.2000908@gmail.com> |
MIME-Version: | 1.0 |
References: | <23292063 DOT post AT talk DOT nabble DOT com> <49F817C2 DOT 2000908 AT gmail DOT com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
Well actually, maybe saying that threading isn't activated is not the correct way to describe my problem. I am basically trying to take advantage of the C++0x implementation provided by GCC 4.4 through the <thread> header for example. The GCC 4.4 implementation of std::thread is guarded by the following preprocessing directive: #if defined(_GLIBCXX_HAS_GTHREADS) && defined(_GLIBCXX_USE_C99_STDINT_TR1) When looking at the bits/c++config.h, _GLIBCXX_USE_C99_STDINT_TR1 is defined but _GLIBCXX_HAS_GTHREADS isn't. I know that GCC has its own implementation of threads called gthreads (that std::thread relies on) which itself is a wrapper around POSIX threads (or other flavours depending on configuration). Either I am not passing the correct flags to GCC (in addition to the -std=c++0x) or my installation of gcc is not correct, or last possibility, my GCC build configuration is not correct. Thanks, O. Dave Korn-6 wrote: > > Casull wrote: > >> I've been trying to build GCC 4.4.0 for use with cygwin, and despite the >> fact that the build succeeds, I can't seem to activate threading even >> when >> supplying the --enable-threads=posix configure option. What am I doing >> wrong >> in order to activate thread support in gcc for cygwin ? > > What symptom or behaviour makes you think that threading is /not/ > "activated"? The --enable-threads=posix option always works fine for me. > > cheers, > DaveK > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Problem reports: http://cygwin.com/problems.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > > > -- View this message in context: http://www.nabble.com/GCC-4.4.0---Can%27t-activate-threading-support-tp23292063p23293465.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |