[cfe-dev]  stddef.h missing
    Zhongxing Xu 
    xuzhongxing at gmail.com
       
    Sun Dec 16 22:21:15 PST 2007
    
    
  
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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20071217/d23392f4/attachment.html>
    
    
More information about the cfe-dev
mailing list