[MacPorts] #34288: clang3.1 cannot compile boost code (or c++11 based code)

MacPorts noreply at macports.org
Tue May 1 07:12:26 PDT 2012


#34288: clang3.1 cannot compile boost code (or c++11 based code)
--------------------------------------------------+-------------------------
 Reporter:  christophe.prudhomme@…                |       Owner:  jeremyhu@…           
     Type:  defect                                |      Status:  new                  
 Priority:  Normal                                |   Milestone:                       
Component:  ports                                 |     Version:  2.0.4                
 Keywords:                                        |        Port:  clang3.1             
--------------------------------------------------+-------------------------
Changes (by ryandesign@…):

  * owner:  macports-tickets@… => jeremyhu@…


Old description:

> clang3.1 seems to be compiled with c++03 support and not c++11 support
> it does not compile boost based code
>
> e.g try to compile the following one line code :
>
> #include <boost/signals2.hpp>
>
> and it fails.
>
> it seems that clang 3.1 is actually using an old (from apple) libstdc++
> (4.2) library which is c++03 and not the latest one eg from gcc 4.6 or
> gcc 4.7.

New description:

 clang3.1 seems to be compiled with c++03 support and not c++11 support
 it does not compile boost based code

 e.g try to compile the following one line code :

 {{{
 #include <boost/signals2.hpp>
 }}}

 and it fails.

 it seems that clang 3.1 is actually using an old (from apple) libstdc++
 (4.2) library which is c++03 and not the latest one eg from gcc 4.6 or gcc
 4.7.

--

-- 
Ticket URL: <https://trac.macports.org/ticket/34288#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list