Hi, Ruben
Your gcc-4.6.2's OpenMP (-fopenmp) seems to lack the linker option
"-lpthread".
I have to build OpenMP program using "gcc -fopenmp main.c -lgomp
-lpthread" with your edition.
--
Best Regards,
PcX
---
于 2011/7/23 20:43, NightStrike 写道:
PcX,
Is this still an issue, or did you figure it out in other threads?
It also has the problem.
I try to debug other thread:
(gdb) thread 2
[Switching to thread 2 (Thread 5008.0x157
>
> Both functions aren't present on a Windows native environment. You
> might can write emulation code for them, but they are not part of
> standard runtime.
>
> So I assume you have enabled here some linux specific parts, which
> aren't supported.
I know that they are not part of windows runti
2011/7/26 K. Frank :
> Hello niXman and Ruben!
>
> On Tue, Jul 26, 2011 at 3:26 PM, niXman wrote:
>> Hi Ruben!
>> I also try to build libstdc++ with winpthreads and determined what neither
>> in mingw-runtime and winpthreads are not implemented the required functions
>> nanosleep() and clock_getti
Hello niXman and Ruben!
On Tue, Jul 26, 2011 at 3:26 PM, niXman wrote:
> Hi Ruben!
> I also try to build libstdc++ with winpthreads and determined what neither
> in mingw-runtime and winpthreads are not implemented the required functions
> nanosleep() and clock_gettime().
> I finally built it :)
Hi Ruben!
I also try to build libstdc++ with winpthreads and determined what neither
in mingw-runtime and winpthreads are not implemented the required functions
nanosleep() and clock_gettime().
I finally built it :)
You need to add flags to configure script: "--enable-threads=posix
--enable-libstd
Isn't that email subject a mouthful :)
In light of the previous discussion and my attempts to build a posix
threaded GCC, I have been looking through commit lists to find where the
checks are being done in the configury that do not enable libstdc++ threads
at the time of its compilation.
Let's ga