Skip to content

Conversation

@sergiocallegari
Copy link

Recent versions of gcc default to C23, but the code produced by f2py is currently not compatible with this newer standard.

Recent versions of gcc default to C23, but the code produced by f2py is currently not compatible with this newer standard.
@sergiocallegari
Copy link
Author

I hope that this can be incorporated as it fixes build failures on linux distributions that ship very recent versions of C compilers (notably gcc 15) that default to the C23 standard.

Copy link

@rgommers rgommers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not only does this fix a concrete issue, it's good practice in general to define the C standard version one uses. FWIW, numpy and scipy are also at C17, so it looks like the right choice.

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.

2 participants