[Rd] can't build from source: error: template with C linkage
j.hadfield at ed.ac.uk
Fri Aug 19 05:43:35 CEST 2016
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 seems to be with mixing C/C++ with the repeated error:
/usr/include/c++/5/bits/cpp_type_traits.h:118:3: error: template with C linkage
I see a bug report has been filed for the CRAN package tgp that was experiencing similar problems, but it is not clear whether it has been resolved.
Any help would be greatly appreciated.
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
More information about the R-devel