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

2012-11-19 Thread Romain Francois
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 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 dir

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

2012-11-19 Thread Thell Fowler
On Mon, Nov 19, 2012 at 1:36 PM, Dirk Eddelbuettel wrote: > > On 19 November 2012 at 19:18, Chris Jefferson wrote: > | This is also fixed in svn (having just checked it out). > > Thanks for that! > > | You can locally fix it by changing line 36 from: > | > | conversion_to_bool_is_forbidden{ > |

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

2012-11-19 Thread Thell Fowler
On Mon, Nov 19, 2012 at 1:18 PM, Chris Jefferson wrote: > On 19/11/12 18:58, Thell Fowler wrote: > > Chris, > > > On Mon, Nov 19, 2012 at 12:40 PM, Chris Jefferson > wrote: > >> On 19/11/12 17:33, Thell Fowler wrote: >> >>> >>> /home/thell/R/library/Rcpp/include/Rcpp/sugar/sets.h:28:2: error: >

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

2012-11-19 Thread Dirk Eddelbuettel
On 19 November 2012 at 19:18, Chris Jefferson wrote: | This is also fixed in svn (having just checked it out). Thanks for that! | You can locally fix it by changing line 36 from: | | conversion_to_bool_is_forbidden{ | | to: | | forbidden_conversion{ [...] | I would guess this is cau

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

2012-11-19 Thread Chris Jefferson
On 19/11/12 18:58, Thell Fowler wrote: Chris, On Mon, Nov 19, 2012 at 12:40 PM, Chris Jefferson mailto:ch...@bubblescope.net>> wrote: 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

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

2012-11-19 Thread Dirk Eddelbuettel
On 19 November 2012 at 13:02, Dirk Eddelbuettel wrote: | On 19 November 2012 at 18:40, Chris Jefferson wrote: | | 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

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

2012-11-19 Thread Dirk Eddelbuettel
On 19 November 2012 at 18:40, Chris Jefferson wrote: | 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), cl

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

2012-11-19 Thread Thell Fowler
Chris, On Mon, Nov 19, 2012 at 12:40 PM, Chris Jefferson wrote: > 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

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

2012-11-19 Thread Chris Jefferson
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

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

2012-11-19 Thread Thell Fowler
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 >> LinkingTo : Rcpp CLINK_CPPFLAGS = -I"/