[LLVMdev] Getting Kaleidoscope to compile

Jon Harrop jon at ffconsultancy.com
Mon Jan 4 04:09:41 PST 2010

On Monday 04 January 2010 10:37:11 Russell Wallace wrote:
> I tried apt-get install llvm-dev just now, and it says it was already
> installed, and when I again try compiling toy.cpp, it gives the same
> set of error messages.

The debs are old. Install LLVM from source.

> >> toy.cpp:5:30: error: llvm/LLVMContext.h: No such file or directory
> >> toy.cpp:352: error: ‘getGlobalContext’ was not declared in this scope

This is new stuff in 2.6.

Dr Jon Harrop, Flying Frog Consultancy Ltd.

More information about the llvm-dev mailing list