title: Undefined symbols for architecture x86_64: "std::terminate()", when building kaleidoscope llvm
body: <p>I'm doing the kaleidoscope tutorial.  I'm on step two.</p>
  
  <p><a href="https://github.com/westymatt/creole" rel="nofollow">https://github.com/westymatt/creole</a></p>
  
  <p>But I get this error when building with clang++</p>
  
  <pre><code>clang++ -Wno-c++11-extensions -g -std=c++11  -I/usr/local/Cellar/llvm/3.6.1/include    -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS src/lexer.cc src/parser.cc -L/usr/local/Cellar/llvm/3.6.1/lib/ -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMCodeGen -lLLVMScalarOpts -lLLVMProfileData -lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget -lLLVMX86Desc -lLLVMObject -lLLVMMCParser -lLLVMBitReader -lLLVMMCDisassembler -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMMC -lLLVMX86Utils -lLLVMCore -lLLVMSupport -lc++ -O0 -o creole
  Undefined symbols for architecture x86_64:
    "std::terminate()", referenced from:
        ___clang_call_terminate in lexer-608bbc.o
        ___clang_call_terminate in parser-09b617.o
  ld: symbol(s) not found for architecture x86_64
  </code></pre>