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

ANSI C and flags #55

Open
teimor opened this issue Dec 19, 2018 · 1 comment
Open

ANSI C and flags #55

teimor opened this issue Dec 19, 2018 · 1 comment

Comments

@teimor
Copy link

teimor commented Dec 19, 2018

First of all, great project!

When using the cflag -ansi, commenting by using // can't be used so the code won't compile and standard error is produce.

The code for test:

//%cflags:-ansi -Wall -pedantic

#include <stdio.h>

int main()
{
   printf("Hello, World!");
   return 0;
}

The Error:

/tmp/tmpuzigbjpm.c:1:1: error: C++ style comments are not allowed in ISO C90
 //%cflags:-ansi -Wall -pedantic
 ^
/tmp/tmpuzigbjpm.c:1:1: error: (this will be reported only once per input file)
[C kernel] GCC exited with code 1, the executable will not be executed

Screenshot for additional information:

screen shot 2018-12-18 at 17 42 41

Thanks!

@teimor
Copy link
Author

teimor commented Dec 19, 2018

Propose to fix this issue in - PR-56

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

No branches or pull requests

1 participant