Having Trouble building LLVM

I follow the instructions on ’ Getting Started with the LLVM System’.I
I failed in build the LLVM System.Some errors occured.
Could someone take a look and help me?


as you do not provide much detail about system, compiler etc:
The error

‘free’ was not declared in this scope

indicates that there is some trouble with the standard libraries. free is declared in <cstdlib>, which is included by llvm/ADT/SmallVector.h, so there should be no problem at all. You should check which files are really included, and you can check if the required declaration is in that file.