The following code fails compile.
#include <stddef.h>
void foo()
{
int *p = NULL;
}
$ clang -fsyntax-only 1.c
1.c:1:10: error: 'stddef.h' file not found
#include <stddef.h>
^
1.c:5:12: error: use of undeclared identifier 'NULL'
int *p = NULL;
^
2 diagnostics generated.
clang should provide its own stddef.h as gcc does. Where should this header
go in the directory?
_______________________________________________
cfe-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev