[Trilinos-Users] Building on mac with clang and c++11

Robert N. Simpson simpsonR4 at cardiff.ac.uk
Mon Jun 10 14:12:18 MDT 2013


Bart,

Toggling that switch also solves the problem. Thanks for the hint.

Rob
On 10 Jun 2013, at 16:59, Bart Janssens wrote:

> Hi Robert,
> 
> Since you appear to be linking to static libraries, I am wondering if this could be a consequence of not having BUILD_SHARED_LIBS turned on? I use clang on OS X and never had to adjust CMAKE_CXX_FLAGS manually, but I do always switch on BUILD_SHARED_LIBS. Also, homebrew can install trilinos for you, if you prefer (I use it that way now).
> 
> Kind regards,
> 
> Bart
> 
> 
> 
> On Mon, Jun 10, 2013 at 5:11 PM, Robert N. Simpson <simpsonR4 at cardiff.ac.uk> wrote:
> Antonio,
> 
> Thanks for the advice. After trying various build options, I managed to link my project with Trilinos. The important feature I found was that I had to recompile the Trilinos library with clang making sure that the -stdlib=libc++ flag was included under the CMAKE_CXX_FLAGS option. Otherwise I get the errors I reported previously.
> 
> I also tried the additional linker flag you suggested. But I found no difference in my build setup, with or without the flag.
> 
> I'm happy though, since I can now progress with the real work of coding!
> 
> 
> 
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> http://software.sandia.gov/mailman/listinfo/trilinos-users


Lecturer
School of Engineering
Cardiff University

Tel +44 (0)29 20876043.  Room number W/2.31





-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20130610/c964abff/attachment.html 


More information about the Trilinos-Users mailing list