LLVM compilation errors on VS 2012
问题 I have built the LLVM using CMake using VS 2012 in keeping with documentation. I am trying to build a toy compiler with flex, bison and LLVM. The final stage of my compiler my main class looks like this: #include <iostream> #include "codegen.h" #include "node.h" #include "llvm/Target/Targetmachine.h" using namespace std; extern int yyparse(); extern NBlock* programBlock; void createCoreFunctions(CodeGenContext& context); int main(int argc, char **argv) { yyparse(); std::cout << programBlock <