Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Code contains C99-style comments, but build system invokes GCC in ANSI C (C90) mode #1

Open
adamnovak opened this issue Jun 26, 2014 · 0 comments

Comments

@adamnovak
Copy link

The code here contains comments that begin with //. The Makefile contains the -ansi flag for GCC, which specifies the C90 standard, which does not include such comments. GCC 4.9.0, when invoked in ANSI mode, interprets // as a pair of division operators in a row, and thus predictably fails to build the code.

This issue breaks the build of progressiveCactus on GCC 4.9.0.

This issue can be worked around by adding -std=c99 to the CFLAGS environment variable before building the code.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant