[Rcpp-devel] Clang 3.0 and 3.3 errors on sugar/set.h

Thell Fowler tbfowler4 at gmail.com
Mon Nov 19 18:50:28 CET 2012


I mis-stated there, with the -std flag.  With gcc 4.6.3 and -std=c++0x the
compilation works just fine.  With both clang versions and and either c++0x
or c++11 the errorsare encountered.

I don't have a later gcc installed to test with the -std=c++11.  (Yet.)


On Mon, Nov 19, 2012 at 11:39 AM, Dirk Eddelbuettel <edd at debian.org> wrote:

>
> On 19 November 2012 at 11:22, Thell Fowler wrote:
> | First:: Ubuntu clang version 3.0-6ubuntu3 (tags/RELEASE_30/final) (based
> on LLVM 3.0)
> ||
> |
> |
> |  >> setting environment variables:
> | PKG_LIBS = -lmpfr -lgmp -L/home/thell/R/library/Rcpp/lib -lRcpp
> -Wl,-rpath,/home/thell/R/library/Rcpp/lib
> | PKG_CPPFLAGS = -std=c++11
>
> Romain may have been too subtle the other day:  This is NOT currently
> supported. We have not turned that flag in quite some time as CRAN won't
> let
> us use it.  If you really it, expect to do some work on the Rcpp source.
>
> | The code compiles and works (the warnings are expected for now) using
> g++.
>
> Could you confirm that it also works with clang with the c++11 flag?
>
> Dirk
>
> --
> Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
>



-- 
Sincerely,
Thell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20121119/053eac6d/attachment.html>


More information about the Rcpp-devel mailing list