Closed Bovornpratch closed 1 week ago
Hi, it looks like you need to add a flag in some distros : https://stackoverflow.com/questions/71548227/undefined-reference-to-stdfilesystem-cxx11 namely stdc++fs Can you make the change by hand and confirm that it solves the problem? thanks!
captured in the Known Issues section of the doc
Sorry for the late reply. I was able to compile it and was testing it to see if things were working as expected.
For the record, in case someone stumbles upon this. Here is what I did. I tried adding -lstdc++fs
to the CFLAGS
variable in the make file but that didn't help. After digging stackoverflow a bit I tried pointing the LIBS
variable to point to the libstdc++fs.a
library directly (LIBS=[path to lib]/libstdc++fs.a
). This works. and the code compiled sucessfully.
Thanks for your Help!
Hi,
First, thanks a lot for your effort in modernizing this code. I have been using the Fortran version of LePhare for quite some time. Now I want to try the c++ version for my work.
I have downloaded the stable version on the LAM gitlab repo and try to compile it on my system but I am getting some errors when compiling zphota (see below). I can't tell if it is due to my compiler or not since I am not super familiar with C++ . I was hoping you could help shed some light on this for me.
My system is basically a Rocky linux 8.8 (basically Redhat/Fedora) with gcc version 8.5.0. I am using the default CFLAGS
ERROR message
Thanks a lot!