ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> boost
boost
Re: [boost] [config] Single threaded builds with g++ >= 3.4: No longer possible?
by Christoph Ludwig other posts by this author
Jan 18 2005 9:07AM messages near this date
[boost] [config] Single threaded builds with g++ >= 3.4: No longer possible? | [boost] [string_algo, regex] Fix for reg_expression errors?
SOURCE Hi,

On Tue, Jan 18, 2005 at 03:49:17PM +0100, Andreas Huber wrote:
>  >From boost/config/stdlib/libstdcpp3.hpp:
>  
>  <quote>
>  #ifdef __GLIBCXX__ // gcc 3.4 and greater:
>  #  ifdef _GLIBCXX_HAVE_GTHR_DEFAULT
>       //
>       // If the std lib has thread support turned on, then turn it on in 
>  Boost
>       // as well.  We do this because some gcc-3.4 std lib headers 
>  define _REENTANT
>       // while others do not...
>       //
>  #     define BOOST_HAS_THREADS
>  #  else
>  #     define BOOST_DISABLE_THREADS
>  #  endif
>  #endif
>  </quote>
>  
>  I suspect this means that ST builds are no longer possible on some GCC 
>  platforms (I'm using MinGW). Could someone please confirm or deny this?

builds without MT support are still possible but you need to explicitly define
BOOST_DISABLE_THREADS (either via the compiler command line option or via your
own version of boost/config/user.hpp). 

Yes, it is annoying, but given that gcc 3.4 does not provide a way to detect
at compile time whether the option `-pthread' (or whatever it is on your
platform) is present on the compiler command line, there seems to be no better
solution. The corresponding PR in the gcc bug tracking system 
<URL:http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11953>  did not see much
activity lately whence I entertain some doubt whether there will be a
resolution before gcc 4.0.

Christoph
-- 
http://www.informatik.tu-darmstadt.de/TI/Mitarbeiter/cludwig.html
LiDIA: http://www.informatik.tu-darmstadt.de/TI/LiDIA/Welcome.html

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Thread:
Andreas Huber
Christoph Ludwig

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved