You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While building CMOR on my Macbook I encountered the following error.
Src/cmor.c:4859:9: error: call to undeclared function 'calculate_leadtime_coord'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
calculate_leadtime_coord(var_id);
I'm currently using Xcode 15.0 on OSX Ventura. I've been building CMOR on my Mac just fine until recently. This issue might have arisen after I rebuilt my Conda environment with the latest version of Clang.
Regardless, the error is caused by the call to the function calculate_leadtime_coord in cmor.c before its declaration. The simplest solution would be to just declare the function near the top of the file.
The text was updated successfully, but these errors were encountered:
I never caught it either until the changes to the compiler flagged it as an error.
@piotr-florek-mohc, if you want to make some fixes to this I could hand this issue over to you. I also noticed there were some functions in the Python wrapper that were meant to point this function until it was decided not to expose it in the API.
While building CMOR on my Macbook I encountered the following error.
I'm currently using Xcode 15.0 on OSX Ventura. I've been building CMOR on my Mac just fine until recently. This issue might have arisen after I rebuilt my Conda environment with the latest version of Clang.
Regardless, the error is caused by the call to the function
calculate_leadtime_coord
in cmor.c before its declaration. The simplest solution would be to just declare the function near the top of the file.The text was updated successfully, but these errors were encountered: