"Unsupported include directive within macro arg" build failure(s) — clang 3.1
#includevoid foo() { printf("foo" #include "version.h" ); } with version.h #define foo 1
$ clang -c -O2 -D_FORTIFY_SOURCE=2 foo.c
foo.c:5:2: error: embedding a #include directive within macro arguments is not
supported
#include "version.h"
^
1 error generated.
# Works
$ gcc -c -O2 -D_FORTIFY_SOURCE=2 foo.c
| Package | Version | Supposed error message | Full log | Bug report |
|---|---|---|---|---|
| cmdpack | 1.03-1 | src/banner.h:7:2: error: embedding a #include directive within macro arguments is not supported | Log |
1 errors