[CLN-list] CLN-list Digest, Vol 69, Issue 1

Stefan Schupp modass at gmx.de
Fri Oct 18 20:59:54 CEST 2013


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 at ginac.de>

> Send CLN-list mailing list submissions to
>         cln-list at 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 at ginac.de
>
> You can reach the person managing the list at
>         cln-list-owner at 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 at gmx.de>
> To: cln-list at ginac.de
> Subject: [CLN-list] Compile cln linked against libc++
> Message-ID:
>         <
> CAJTo4xS5JmquqEt52iAjren_HnVuXC_71NdJx76OsgcTo8EaXw at 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
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.cebix.net/pipermail/cln-list/attachments/20131017/86210036/attachment-0001.html
> >
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> CLN-list mailing list
> CLN-list at ginac.de
> https://www.cebix.net/mailman/listinfo/cln-list
>
>
> ------------------------------
>
> End of CLN-list Digest, Vol 69, Issue 1
> ***************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cebix.net/pipermail/cln-list/attachments/20131018/9bb85d21/attachment.html>


More information about the CLN-list mailing list