[cfe-dev] error: 'NULL' was not declared in this scope (SourceLocation.h:212)

Emmanuel Bastien ebastien at amadeus.com
Wed Dec 12 11:26:59 PST 2007


Hello,
After SVN update to r44952 I have the following compilation error:

make[1]: Entering directory 
`/data/ngi/ebastien/llvm-SVN/llvm/tools/clang/Basic'
llvm[1]: Compiling Diagnostic.cpp for Release build
In file included from 
/data/ngi/ebastien/llvm-SVN/llvm/tools/clang/Basic/../include/clang/Basic/Diagnostic.h:17,
                 from Diagnostic.cpp:14:
/data/ngi/ebastien/llvm-SVN/llvm/tools/clang/Basic/../include/clang/Basic/SourceLocation.h: 
In constructor 'clang::FullSourceLoc::FullSourceLoc()':
/data/ngi/ebastien/llvm-SVN/llvm/tools/clang/Basic/../include/clang/Basic/SourceLocation.h:212: 
error: 'NULL' was not declared in this scope
make[1]: *** 
[/data/ngi/ebastien/llvm-SVN/llvm/tools/clang/Basic/Release/Diagnostic.o] 
Error 1
make[1]: Leaving directory 
`/data/ngi/ebastien/llvm-SVN/llvm/tools/clang/Basic'
make: *** [all] Error 1

It was fine with r44790.
Regards,
Emmanuel Bastien




More information about the cfe-dev mailing list