From: Chris S (chrisks_at_[hidden])
Date: 2003-02-22 14:49:33
It seems my problem was embarrassingly simple. I forgot to give mingw
the -mthreads switch. Everything seems to run smoothly now. In my defense, I
checked mingw.org for the appropriate documentation regarding threads but
didn't find any info on its command line switches.
----- Original Message -----
From: "William E. Kempf" <wekempf_at_[hidden]>
Sent: Friday, February 21, 2003 10:05 AM
Subject: Re: Boost Crashes after Compiling with Mingw?
> Chris S said:
> > I've installed boost's threading library following the build
> > instructions in the documentation. I was unable to get bjam to work. No
> > matter what I tried it won't accept my include or library paths for
> > mingw. However, using Dev-C++, I set up projects using the appropriate
> > include and library directories and successfully built both
> > libboostthread.a and
> > boostthreadmon.dll.
> > All seemed well until I tried to run the libs/thread/example/thread.cpp
> > example. It compiled wonderfully and without error, but segfaults for
> > the lines:
> > boost::thread thrd(alarm);
> > thrd.join();
> > I'm assuming, while I believe I followed the build instructions
> > correctly and received no compilation or linking errors, that the boost
> > threading library is not at fault. If so, what might I have done, or not
> > done, to cause this problem?
> Actually, I'm fighting GCC/Win32 issues. Cygwin uses POSIX threads, and
> the timing facilities seem to be broken. Cygwin with -mno-cygwin and
> MinGW use the native Win32 C RTL, but there's issues with TSS not working
> which *appears* to stem from the STL libraries not being thread safe (and
> I've not had the time to get STLPort to work with the Cygwin/-mno-cygwin
> combination that I use). The specific problem you're describing is not
> one I've seen, so I'll look into it shortly, but don't be too quick to
> assume it's not a fault in Boost.Threads. If anyone can help in solving
> these portability issues, I'd appreciate it.
> William E. Kempf
> Unsubscribe & other changes:
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk