为了了解Kaleidoscope tutorial part 4,我下载了头文件KaleidoscopeJIT.h。但是,一旦我包含了它,我就会得到以下错误
$ clang++ -g main.cpp kaleidoscope.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core orcjit native` -O3 -o kaleidoscope
In file included from kaleidoscope.cpp:18:
././include/KaleidoscopeJIT.h:21:10: fatal error: 'llvm/ExecutionEngine/Orc/ExecutorProcessControl.h' file not found
#include "llvm/ExecutionEngine/Orc/ExecutorProcessControl.h"我能在documentation page上找到的最接近它的信息,但没有关于如何成功编译它的信息。关于如何解决头部依赖有什么建议吗?
以下是我的配置选项,
$ llvm-config --cxxflags --ldflags --system-libs --libs core orcjit native
-I/usr/lib/llvm-10/include -std=c++14 -fno-exceptions -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-L/usr/lib/llvm-10/lib
-lLLVM-10发布于 2021-07-21 10:55:53
确保您提取了正确的文件。您使用的是llvm-10,因此需要使用该version中的万花筒教程。
https://stackoverflow.com/questions/68356870
复制相似问题