Closed thekendalmiller closed 10 months ago
Thanks for the links! Adding the testing macros should be simple enough. Looks like we only pull that in for the possibility of catching std::filesystem::filesystem_error
.
I also needed to change this line to have_library('stdc++fs')
https://github.com/jasonroelofs/rice/blob/59b03953e91f681849a20121614bcdb1114c86d8/lib/mkmf-rice.rb#L129
I'm seeing this compilation issue on on Amazon Linux 2 (redhat like) with gcc (GCC) 7.3.1 20180712 (Red Hat 7.3.1-17).
From googling a bit, it looks like it might be because some gcc have
filesystem
as experimental. It looks like there are macros to detect the namespace https://stackoverflow.com/a/53366603I can confirm for these servers that filesystem is in
/usr/include/c++/7/experimental/filesystem