nimble-dev / nimble

The base NIMBLE package for R
http://R-nimble.org
BSD 3-Clause "New" or "Revised" License
160 stars 24 forks source link

modify ordering of includes in C++ code to address Red Hat Linux compilation failures #1417

Closed paciorek closed 7 months ago

paciorek commented 9 months ago

This fixes issue #1415 by putting math.h and Rmath.h includes first in predefinedNimbleLists.cpp and when generating C++ files based on CPPincludes.

Not sure whether any other RH-related Linux variants are affected. Fedora seems fine based on CRAN testing and SL7 fine based on use on Savio. Not sure about CentOS.