"Unsupported include directive within macro arg" build failure(s)
clang 8.0.1
#include
void 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 |
hnb | 1.9.18+ds1-2 | prefs.c:92:2: error: embedding a #include directive within macro arguments is not supported
| Log |
|
libsmpp34 | 1.13.0-2 | ../src/smpp34_params.c:138:2: error: embedding a #include directive within macro arguments is not supported
| Log |
|
nbdkit | 1.16.2-1 | main.c:111:2: error: embedding a #include directive within macro arguments is not supported
| Log |
|
wav2cdr | 2.3.4-2 | wav2cdr.c:136:2: error: embedding a #include directive within macro arguments is not supported
| Log |
|
xsecurelock | 1.5.1-1 | main.c:375:2: error: embedding a #include directive within macro arguments is not supported
| Log |
|
5 errors