<div dir="ltr">Hi,<br><br>I am very excited to take the awesome tutorial of implementing *Kaleidoscope*. But I got stuck here...<div><br></div><div>I have done the AST parsing, however, when I introduce these 'llvm/IR/*' headers, I got a compiling error... But if I delete these headers it runs well ...</div><div><br></div>"""headers<br>#include "llvm/IR/BasicBlock.h"<br>#include "llvm/IR/Constants.h"<br>#include "llvm/IR/DerivedTypes.h"<br>#include "llvm/IR/Function.h"<br>#include "llvm/IR/IRBuilder.h"<br>#include "llvm/IR/LLVMContext.h"<br>#include "llvm/IR/Module.h"<br>#include "llvm/IR/Type.h"<br>#include "llvm/IR/Verifier.h"<br>"""<div><br></div><div>"""error</div><div><div>$ g++ -I/usr/local/opt/llvm/include -L/usr/local/opt/llvm/lib -std=c++11 k-lang.cc</div><div>Undefined symbols for architecture x86_64:</div><div>  "llvm::DisableABIBreakingChecks", referenced from:</div><div>      llvm::VerifyDisableABIBreakingChecks in k-lang-14fa17.o</div><div>ld: symbol(s) not found for architecture x86_64</div><div>clang: error: linker command failed with exit code 1 (use -v to see invocation)</div></div><div>"""</div><div><br></div><div>My OS is MacOS High Sierra v10.13.3</div><div><br></div><div>Source Codes could be viewed on: [GitHub](<a href="https://github.com/Higuoxing/llvm-playground">https://github.com/Higuoxing/llvm-playground</a>)</div><div><br></div><div><div>I am still trying to google it ... and it would be great if someone could help me...</div><div><br></div><div>Again, thanks for awesome LLVM and this awesome tutorial :D<br><br>Best Regards,<br>Xing</div></div></div>