Re: [CLN-list] CLN-list Digest, Vol 69, Issue 1
I fixed my problem: ./configure CXX=/usr/bin/clang++ CXXFLAGS="-stdlib=libc++ -std=c++11" LDFLAGS="-stdlib=libc++" and then add an include for string (#include <string>) to exception.h (should be considered a bug? Thanks to Howard Hinnant from Stackoverflow for helping) Now CLN compiles as expected. 2013/10/18 <cln-list-request@ginac.de>
Send CLN-list mailing list submissions to cln-list@ginac.de
To subscribe or unsubscribe via the World Wide Web, visit https://www.cebix.net/mailman/listinfo/cln-list or, via email, send a message with subject or body 'help' to cln-list-request@ginac.de
You can reach the person managing the list at cln-list-owner@ginac.de
When replying, please edit your Subject line so it is more specific than "Re: Contents of CLN-list digest..."
Today's Topics:
1. Compile cln linked against libc++ (Stefan Schupp)
----------------------------------------------------------------------
Message: 1 Date: Thu, 17 Oct 2013 22:56:32 +0200 From: Stefan Schupp <modass@gmx.de> To: cln-list@ginac.de Subject: [CLN-list] Compile cln linked against libc++ Message-ID: < CAJTo4xS5JmquqEt52iAjren_HnVuXC_71NdJx76OsgcTo8EaXw@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1"
Hi,
I am currently trying to compile cln with linkage against libc++. My aproach was:
/configure CXX=/usr/bin/clang++ CXXFLAGS=-stdlib=libc++
However this does not work as I get erroneus output such as
In file included from base/cl_alloca.cc:4: In file included from ./base/cl_sysdep.h:56: In file included from ./base/cl_macros.h:7: ../include/cln/exception.h:14:24: error: implicit instantiation of undefined template 'std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >' : std::runtime_error(std::string()) {} ^ /usr/bin/../lib/c++/v1/iosfwd:187:28: note: template is declared here class _LIBCPP_TYPE_VIS basic_string;
What does this mean and what am I doing wrong? I need this in order to compile ginac with the same linkage as it is used in a project with c++11 features.
Best regards, Stefan
On 10/18/2013 08:59 PM, Stefan Schupp wrote:
I fixed my problem:
|./configure CXX=/usr/bin/clang++ CXXFLAGS="-stdlib=libc++ -std=c++11" LDFLAGS="-stdlib=libc++"|
|and then add an include for string (#include <string>) to exception.h (should be considered a bug? Thanks to Howard Hinnant from Stackoverflow for helping)|
Thanks for reporting this. I've fixed it in git. -richy. -- Richard B. Kreckel <http://www.ginac.de/~kreckel/>
Hi, when compiling 1.3.3 on my OSX Mavericks box I found I had to add #include <string> at line 4 in include/cln/exception.h Cheers, -- David van der Spoel, Ph.D., Professor of Biology Dept. of Cell & Molec. Biol., Uppsala University. Box 596, 75124 Uppsala, Sweden. Phone: +46184714205. spoel@xray.bmc.uu.se http://folding.bmc.uu.se
/opt/local/include/cln/proplist.h:35:9: note: did you mean struct here? friend class cl_property_list; ^~~~~ struct -- David van der Spoel, Ph.D., Professor of Biology Dept. of Cell & Molec. Biol., Uppsala University. Box 596, 75124 Uppsala, Sweden. Phone: +46184714205. spoel@xray.bmc.uu.se http://folding.bmc.uu.se
participants (3)
-
David van der Spoel
-
Richard B. Kreckel
-
Stefan Schupp