Skip to content

Conversation

@sircodalotkob
Copy link

The common code of img4dc uses the C function realpath() to canonicalize/cleanup paths. Since -std=c99 was added to CMakeLists.txt, the code couldn't be built on Linux anymore, because realpath() is not part of C99. It is, however, part of the GNU extensions to the C99 standard, so using -std=gnu99 does the trick.

The common code of img4dc uses the C function realpath() to canonicalize/cleanup paths.
Since -std=c99 was added to CMakeLists.txt, the code couldn't be built on Linux anymore, because realpath() is not part of C99.
It is, however, part of the GNU extensions to the C99 standard, so using -std=gnu99 does the trick.
ArtemioUrbina pushed a commit to ArtemioUrbina/img4dc that referenced this pull request Dec 17, 2025
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