Force C compiler to the C17 standard#204
Open
sergiocallegari wants to merge 1 commit intobmcage:masterfrom
Open
Force C compiler to the C17 standard#204sergiocallegari wants to merge 1 commit intobmcage:masterfrom
sergiocallegari wants to merge 1 commit intobmcage:masterfrom
Conversation
Recent versions of gcc default to C23, but the code produced by f2py is currently not compatible with this newer standard.
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. |
rgommers
approved these changes
Nov 11, 2025
rgommers
left a comment
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Recent versions of gcc default to C23, but the code produced by f2py is currently not compatible with this newer standard.