I've been trying to link CoolProp with a C++ code for a couple of days now.
I tried using the SourceForge binaries (6.5.0, 6.6.0, 6.8.0, and 7.0.0), and building 6.8.0 and 7.0.0 locally, on Ubuntu 24, GCC 13 (both static and shared libs, with and without the PIC option),.
I get a segfault as soon as the program starts, during the parsing of the fluid JSONs. Valgrind says it comes from rapidjson allocators.
The JSONs that are being passed to rapidjson seem valid to me, I've printed them and diff'd against the ones in dev.
I've also tried to modify the build system of our code to compile the CoolProp sources together with ours (we use Bazel, which sadly is not plug-and-play with CMake).
In doing so, I also tried hacking rapidjson to use only the C allocator (instead of their fast one that also uses the stack).
I also tried with the developement branch of rapidjson, no luck.