Open fontiela opened 1 year ago
Hello,
I am not sure I ever replied to this issue, my apologies.
The functions are declared later in the sphfd_SWR_NLL.c code, but apparently depending on compiler and compiler flags this gives an error. If you are not using sphfd_SWR_NLL, then the easiest might be to comment out in src/CMakeLists.txt
the following lines:
add_executable(sphfd_SWR_NLL sphfd_SWR_NLL.c)
target_link_libraries(sphfd_SWR_NLL GRID_LIB_OBJS m)
target_compile_options(sphfd_SWR_NLL PRIVATE "-w")
and then recompile. If you want to use sphfd_SWR_NLL or get this error for other NLL objects, then I would check which flag on your compiler should be set to either recognize the older C code conventions or to not give an error when they are used.
Anthony
Dear Anthony,
I follow your recommendations and I was able to compile.
Thank you
Hi Anthony,
I attach here a patch which should make sphfd_SWR_NLL.c
compilable. (But I didn't test the code).
When I compile NLL I get several errors related to the sphfd_SWR_NLL.c file
I tried to compile on macOS 14.0 with M1 and M2.