Skip to content
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

Fix compilation under gcc7.5 #81

Conversation

huguesdpdn-aerospace
Copy link
Contributor

@huguesdpdn-aerospace huguesdpdn-aerospace commented Sep 20, 2024

Hello,

this PR is aim to solve FreeCAD/FreeCAD#16181 which, when compiling with an old and fresh Ubuntu 20.04 that still use GCC version <= 7.5 , a debug output is not correctly processed neither compiled.

For more info, checkout this StackOverflow post: Why does GCC not seem to have the filesystem standard library?

This PR is only impacting GCC compiler version < 8 - In that case, the debug message/output won't be displayed (well, I think nobody cares anyway since currently Ubuntu has GCC version 9 installed. So, in case a developer use a very old version of GCC and if the message is not displayed ... I don't think it is not gonna be a big issue. And in case of debug with GCC version< 8 , I guess Ondsel developers know how to add a #include <iostream> and a std::cout << ... << std::endl; )

Comment on lines +362 to +365
// https://stackoverflow.com/a/45867491
#if __GNUC__ >= 8

Choose a reason for hiding this comment

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

Still won't compile due to #include <filesystem> on line 65.

@huguesdpdn-aerospace huguesdpdn-aerospace force-pushed the fix_compilation_under_gcc7.5 branch from 31a1359 to 444c219 Compare October 30, 2024 20:45
@huguesdpdn-aerospace
Copy link
Contributor Author

@aiksiongkoh or other moderator: can you please re-run this PR workflow to test it ?

Thank you and sorry for the delay

@PaddleStroke
Copy link
Contributor

@aiksiongkoh are you ok to merge this?

@aiksiongkoh aiksiongkoh merged commit 2e3659c into Ondsel-Development:main Nov 4, 2024
4 checks passed
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.

4 participants