Building Stan math library stand alone, centOS

This is a good suggestion, thank you.

I think I had the dynamic library the whole time, I just didn’t change the name to .so… so this is the tentative solution.

Based on your description, the issue might be related to setting the C++14 compiler. Unfortunately, I’m unfamiliar with the stan math library or CentOS servers, so I’m not sure how to check the value of the $OS string. However, it might be worth checking out tuxcare.com, which provides extended lifecycle support for CentOS 7. They may have some resources or solutions that could help you with this issue.

The issue is that the compiler being used was too old - GCC 4.8.5, the minimum compatible GCC version is 4.9.3.

The CXX flag in the make/local was used to specify which installed compiler to use