简体   繁体   English

如何解决llvm示例的编译错误?

[英]How to solve compile error for the llvm example?

I try to compile the official site example, the Kaleidoscope example. 我尝试编译官方站点示例, 万花筒示例。 I totally copy the example and compile with the given command. 我完全复制了示例,并使用给定的命令进行了编译。 But I can't compile success. 但是我不能成功。

Here is the error information: 这是错误信息: 编译错误

After add the #include "llvm/Support/raw_ostream.h". 之后添加#include“ llvm / Support / raw_ostream.h”。 This error sovled. 这个错误解决了。 Though another error comes out. 虽然出现另一个错误。 链接错误

toy.cpp can't find errs() function. toy.cpp找不到errs()函数。 Try to locate errs() declaration (.h file) and include this file inside toy.cpp 尝试找到errs()声明(.h文件)并将此文件包含在toy.cpp中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM