public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/52300] New: Gthreads functions linking error at dynamic linking with libstdc++ when using MinGW.
@ 2012-02-17 20:26 i.nixman at gmail dot com
  2012-02-19 17:14 ` [Bug libstdc++/52300] " ktietz at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: i.nixman at gmail dot com @ 2012-02-17 20:26 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52300

             Bug #: 52300
           Summary: Gthreads functions linking error at dynamic linking
                    with libstdc++ when using MinGW.
    Classification: Unclassified
           Product: gcc
           Version: 4.6.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: i.nixman@gmail.com


When using std::threads for example, the program is compiled correctly. But
when running I get segfolts. If the program is linked with -static - all the
problem disappears.

If in the file gthr-posix.h I change this line:
> # If SUPPORTS_WEAK && GTHREAD_USE_WEAK
on this:
> # If SUPPORTS_WEAK && GTHREAD_USE_WEAK && !defined(__MINGW32__)
- the problem is solved.

Is there any way to fix this?

niXman.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-02-20 21:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-17 20:26 [Bug libstdc++/52300] New: Gthreads functions linking error at dynamic linking with libstdc++ when using MinGW i.nixman at gmail dot com
2012-02-19 17:14 ` [Bug libstdc++/52300] " ktietz at gcc dot gnu.org
2012-02-19 17:20 ` i.nixman at gmail dot com
2012-02-20 21:29 ` ktietz at gcc dot gnu.org
2012-02-20 21:30 ` ktietz at gcc dot gnu.org
2012-02-20 21:40 ` ktietz at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).