Hi, I was previously using the threading library with MinGW (latest release version) with no problems. Yesterday I came across a segfault that occurred when accessing a shared pointer so I updated the boost-cvs version I was using to see if it was a known problem that had been fixed; however when attempting to build the new version it appeared that threading had been disabled for MinGW? Is this the case or is it a problem with the way I'm building my code. Any help greatly appreciated, Russ
Russ wrote:
Hi,
I was previously using the threading library with MinGW (latest release version) with no problems. Yesterday I came across a segfault that occurred when accessing a shared pointer so I updated the boost-cvs version I was using to see if it was a known problem that had been fixed; however when attempting to build the new version it appeared that threading had been disabled for MinGW? Is this the case or is it a problem with the way I'm building my code.
You need -mthreads.
Thanks, I found this after posting; unfortunately the segv still occurs as
it did
in the previous version (attempting the InterlockedExchange on a lightweight
mutex when adding a reference to a shared pointer). I'll check if i'm doing
anything else un-cunning.
Thanks again
Russ
"Peter Dimov"
Russ wrote:
Hi,
I was previously using the threading library with MinGW (latest release version) with no problems. Yesterday I came across a segfault that occurred when accessing a shared pointer so I updated the boost-cvs version I was using to see if it was a known problem that had been fixed; however when attempting to build the new version it appeared that threading had been disabled for MinGW? Is this the case or is it a problem with the way I'm building my code.
You need -mthreads.
Info: http://www.boost.org Wiki: http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl Unsubscribe: mailto:boost-users-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Russ said:
Hi,
I was previously using the threading library with MinGW (latest release version) with no problems. Yesterday I came across a segfault that occurred when accessing a shared pointer so I updated the boost-cvs version I was using to see if it was a known problem that had been fixed; however when attempting to build the new version it appeared that threading had been disabled for MinGW? Is this the case or is it a problem with the way I'm building my code.
Any help greatly appreciated,
No, threading hasn't been disabled for MinGW, and in fact I test with the Cygwin compiler using the -mnocygwin option, which should be equivalent to using MinGW. We'll need more information to figure out why it's not working for you. -- William E. Kempf
participants (3)
-
Peter Dimov
-
Russ
-
William E. Kempf