build LLVM example: Undefined symbols for architecture x86_64
问题 I've installed LLVM on my laptop but having problem compiling the Fibonacci example in llvm/examples/Fibonacci : clang++ -std=c++11 -I ../../include fibonacci.cpp -o fib /usr/local/include/llvm/Support/DataTypes.h:57:3: error: "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h" According to this question, I add some driver flags: clang++ fibonacci.cpp -std=c++11 -I ../../include -o fib -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS Different errors produced: Undefined