Displaying 1 result from an estimated 1 matches for "hmushtaq".
Did you mean:
mushtaq
2013 Feb 08
0
[LLVMdev] Error when Inserting Global variable
...s. For example, when I try to
insert a global variable using the following code.
llvm::Value *val = new llvm::GlobalVariable(mod,
llvm::Type::getInt32Ty(mod.getContext()),
false, llvm::GlobalValue::ExternalLinkage, 0, "myvar");
I get the following error.
opt: symbol lookup error: /home/hmushtaq/llvm/Debug+Asserts/lib/Basic3.so:
undefined symbol:
_ZN4llvm14GlobalVariableC1ERNS_6ModuleEPNS_4TypeEbNS_11GlobalValue12LinkageTypesEPNS_8ConstantERKNS_5TwineEPS0_bj
/usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 0 has
invalid symbol index 11
/usr/bin/ld: /usr/lib/debug/usr/lib...