How to Use LLVM JIT to execute c++ ir code on windows

时间:2018-12-19 11:32:17

标签: llvm jit clang++ lli

the c++ code:

#include <iostream>
int main() {
    std::cout << "hello world\n";
}

use clang & lli:

clang++ -S -emit-llvm hello.cpp -o hello.ll

lli.exe hello.ll

It reports a fatal error, something like "Program used external function ??_7type_info@@6B@ which could not be resolved". How can I resolve that linking issue? the symbol ??_7type_info@@6B@ is defined in?

0 个答案:

没有答案