Re: [Rd] can't build from source: error: template with C linkage

2016-08-19 Thread Martyn Plummer
This looks like the result of including a C++ system header inside an extern "C" block. There is no evidence of this happening in the current version 2.22.1. However, it did happen in the previous version 2.22 via the chain of inclusions: MCMCglmmcc.h -> cs.h -> R.h -> various C++ system headers

Re: [Rd] can't build from source: error: template with C linkage

2016-08-19 Thread Jarrod Hadfield
Hi Martyn, Thanks for the help. This is now ringing very vague bells and I will check it out. Cheers, Jarrod On 19/08/16 15:51, Martyn Plummer wrote: This looks like the result of including a C++ system header inside an extern "C" block. There is no evidence of this happening in the curre

Re: [Rd] can't build from source: error: template with C linkage

2016-08-19 Thread Dirk Eddelbuettel
Jarrod, On 19 August 2016 at 04:43, Jarrod Hadfield wrote: | Hi All, | | Users have contacted me because they can not build MCMCglmm from source. All are using R 3.3.0 on various machines with different compilers | | gcc (Ubuntu 5.4.0-6ubuntu1~16.04.2) 5.4.0 | g++ (Ubuntu 4.8.4-2ubuntu1~14.04.

[Rd] can't build from source: error: template with C linkage

2016-08-18 Thread Jarrod Hadfield
Hi All, Users have contacted me because they can not build MCMCglmm from source. All are using R 3.3.0 on various machines with different compilers gcc (Ubuntu 5.4.0-6ubuntu1~16.04.2) 5.4.0 g++ (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4 Mac OS X El Capitan (version/compiler unspecified) The issue s