Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Sep 2014 22:19:10 -0500
From:      Pedro Giffuni <pfg@freebsd.org>
To:        Steve Kargl <sgk@troutmask.apl.washington.edu>
Cc:        fortran@FreeBSD.org
Subject:   Re: Help with gfortran
Message-ID:  <540FC32E.6000305@freebsd.org>
In-Reply-To: <20140910022632.GA70317@troutmask.apl.washington.edu>
References:  <540E18DB.3020006@freebsd.org> <540FA812.1050606@freebsd.org> <20140910022632.GA70317@troutmask.apl.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

On 09/09/14 21:26, Steve Kargl wrote:
> On Tue, Sep 09, 2014 at 08:23:30PM -0500, Pedro Giffuni wrote:
>> While here, I think it should be possible to drop libstdc++ into an
>> independent port and have all the  g++ ports use libc++ by default.
>>
> I'm no expert on this, but I suspect that g++ will be unhappy with
> libc++. libstdc++ and libc++ simply are incompatible.
>

It should be somewhat like using stlport with g++ and libc++
supports the standards well enough that it should just work.
At least the contrary; having libstdc++ work compatibly with
clang, is already possible:

http://clang.llvm.org/cxx_status.html

"Clang's C++11 mode can be used withlibc++ <http://libcxx.llvm.org/>or 
with gcc's libstdc++, but patches are needed to makelibstdc++-4.4 
<http://clang.llvm.org/libstdc++4.4-clang0x.patch>work with Clang in 
C++11 mode. Patches are also needed to makelibstdc++-4.6 
<http://clang.llvm.org/libstdc++4.6-clang11.patch>andlibstdc++-4.7 
<http://clang.llvm.org/libstdc++4.7-clang11.patch>work with Clang 
releases prior to version 3.2 in C++11 mode.thread_localsupport 
currently requires the C++ runtime library from g++-4.8 or later."

This said, I am not an expert either.

Pedro.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?540FC32E.6000305>