LLVM header files for Kaleidoscope tutorial

I’m going through the Kaleidoscope tutorial, adding the codegen() functions: https://llvm.org/docs/tutorial/LangImpl03.html.

I cannot find any discussion of header files to include, (other than the include of llvm/ADT/STLExtras.h in the lexer/parser code), and the compilation is failing due to several undefined symbols: LogErrorV, Value, LLVMContext, APFloat, and others. I’ve been hunting down the header files for each symbol, but I must be missing something. What am I doing wrong?

Jack Orenstein

At the bottom of every tutorial page, I think there’s a full code listing with all the required includes, etc?

Hmm. It’s right there. I don’t know how I missed that. Thank you!