Skip to content

compiler error for gcc 14 #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: dev-cohort
Choose a base branch
from

Conversation

pletzer
Copy link

@pletzer pletzer commented Jun 23, 2025

These changes fix a compiler error when using gcc 14

src/seapodym_cohort.cpp:267:29: error: cannot call member function ‘DF_FILE* gradient_structure::get_fp()’ without object
267 | gradient_structure::get_fp()->fread(str,num_bytes);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~

The solution is to instantiate gradient_structure()

gradient_structure().get_fp()->fread(&tmpout,num_bytes);

Thanks for updating

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant