我正在使用这个示例探索使用Flex、Bison和LLVM (最新版本的所有版本)编写编译器:这个链接的最后一页是 Github源代码。我无法让它编译,任何帮助都将不胜感激。对我来说不幸的是,解决方案并不明显。In file included from codegen.cpp:2:In file included from /usr/local/Cellar/llvm
我一直在使用include\llvm和include\llvm-c中提供的头文件来尝试制作自己的编译器。然而,每当我尝试编译时,我都会得到这个错误。我的文件中没有llvm/IR/Attributes.inc,也没有我见过的任何LLVM项目。我得到了这个错误:
In file included from ./headers/llvm/IR/F