Hi,
I have a TMB code which has been developed in a Windows environment and works perfectly well there. I was going to test it under Linux but then it would not compile and it seemed to complain about some usage of isnan(). I have a .R folder containing a Makevars file where it is specified to use clang as a compiler, i.e., CXX=clang++ as (please correct me if I’m wrong) I recall there were some issues when loading the libraries after changes had been made in the cpp-file due to the gcc compiler. However, if I remove the .R folder and compile with the default gcc it compiles fine, but then I guess it still is the issue about the libraries.
Any ideas of what could be the problem? I suspect it has something to do with the clang version, as I found in another post someone mentioning a clang version much higher than installed on our system.
We are running:
Ubuntu 16.04 LTS
R 3.6.2
TMB 1.7.18
Clang 3.8.0-2ubuntu4
g++ (Ubuntu 4.9.3-13ubuntu2) 4.9.3
Kind regards,
Tor Arne