From j.hadfield at ed.ac.uk  Fri Aug 19 05:43:35 2016
From: j.hadfield at ed.ac.uk (Jarrod Hadfield)
Date: Fri, 19 Aug 2016 04:43:35 +0100
Subject: [Rd] can't build from source: error: template with C linkage
Message-ID: <90f718c0-1299-6da3-b95c-9152ed565609@ed.ac.uk>

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 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
    template<typename _Tp>

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.

Cheers,

Jarrod


-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.



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