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

split PLATFORM_CFLAGS into PLATFORM_CXXFLAGS to avoid compile errors on .c files #6625

Merged

Conversation

armadillu
Copy link
Contributor

@armadillu armadillu commented Oct 27, 2020

Similar to this: #5445

When your project contains .c files, the of makefile currently passes the -std=c++11 to the compiler, which throws an error.
This wasn't a problem when using GCC, but it is when trying to use on CLANG.

Using the same strategy as mentioned on the issue above fixed the problem.

@armadillu armadillu changed the title split PLATFORM_CFLAGS into PLATFORM_CFLAGS and PLATFORM_CXXFLAGS to a… split PLATFORM_CFLAGS into PLATFORM_CXXFLAGS to avoid compile errors on .c files Oct 28, 2020
@arturoc arturoc merged commit 9eabc1c into openframeworks:master Oct 28, 2020
@arturoc
Copy link
Member

arturoc commented Oct 28, 2020

thanks!

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