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

remove c++ standard from compile options and define separately to compile with clang #20

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

mlanighan
Copy link
Contributor

When building with clang I ran into an issue with the specified compile options.
gcc throws a warning for this, but clang throws an error.

building with gcc:
cc1: warning: command line option ‘-std=c++14’ is valid for C++/ObjC++ but not for C

building with clang:
error: invalid argument '-std=c++14' not allowed with 'C'

By defining the c++ standard outside of compile options this warning/error is addressed and I can compile with both clang and gcc.

@marip8 marip8 merged commit 9046b1f into Jmeyer1292:master Dec 7, 2023
3 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.

2 participants