GCC 4.4.0 - Can't activate threading support
Casull
aphex001@hotmail.com
Wed Apr 29 09:20:00 GMT 2009
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/
More information about the Cygwin
mailing list