Yes. That´s it, and this is fixed in the current devel version of Rcpp. 

Romain

Envoyé de mon iPhone

Le 19 nov. 2012 à 19:40, Chris Jefferson <ch...@bubblescope.net> a écrit :

> On 19/11/12 17:33, Thell Fowler wrote:
>> 
>> /home/thell/R/library/Rcpp/include/Rcpp/sugar/sets.h:28:2: error:
>> invalid preprocessing directive
>> #elseif defined(HAS_TR1_UNORDERED_SET)
> 
> Without looking any deeper at this (sorry), clang doesn't not accept elseif, 
> it requires elif.
> 
> gcc actually doesn't do what you expect with elseif. It just ignores it if 
> the #if isn't added, and causes a compile-time error if you end up actually 
> reaching that line. So in:
> 
> #if defined(X)
> 
> #elseif defined(Y)
> 
> #endif
> 
> If X is not defined, nothing is included even if Y is defined. If X is 
> defined, a compile-time error always occurs.
> 
> in you want someone with gcc, clang and c++0x experience have a dig through 
> these headers, I am happy to download them and have a look.
> 
> Chris
> 
> _______________________________________________
> Rcpp-devel mailing list
> Rcpp-devel@lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
_______________________________________________
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to