[llvm-dev] [Kaleidoscope] symbol(s) not found during compiling
Xing GUO via llvm-dev
llvm-dev at lists.llvm.org
Fri Jun 1 06:31:33 PDT 2018
Hi,
I am very excited to take the awesome tutorial of implementing
*Kaleidoscope*. But I got stuck here...
I have done the AST parsing, however, when I introduce these 'llvm/IR/*'
headers, I got a compiling error... But if I delete these headers it runs
well ...
"""headers
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Type.h"
#include "llvm/IR/Verifier.h"
"""
"""error
$ g++ -I/usr/local/opt/llvm/include -L/usr/local/opt/llvm/lib -std=c++11
k-lang.cc
Undefined symbols for architecture x86_64:
"llvm::DisableABIBreakingChecks", referenced from:
llvm::VerifyDisableABIBreakingChecks in k-lang-14fa17.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
"""
My OS is MacOS High Sierra v10.13.3
Source Codes could be viewed on: [GitHub](
https://github.com/Higuoxing/llvm-playground)
I am still trying to google it ... and it would be great if someone could
help me...
Again, thanks for awesome LLVM and this awesome tutorial :D
Best Regards,
Xing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180601/6a5b176b/attachment-0001.html>
More information about the llvm-dev
mailing list