[LLVMdev] Undefined references

Henrik Bach henrik_bach_llvm at hotmail.com
Sun Feb 13 13:37:16 PST 2005


Hi LLVMers,

I can't figure out why these errors exits:
-------------------------
llvm[2]: Linking Debug executable opt
c:/projects/build/MinGW/llvm-4-1/Debug/lib/LLVMProfilePaths.o(.text$_ZN4llvm10BranchInstC1EPNS_10BasicBlockES2_+0x52): 
In function 
`ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeISt4pairIKPN4llvm8FunctionEPNS3_5GraphEEEE10deallocateEPSA_j':
c:/MinGW/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/ext/new_allocator.h: 
undefined reference to 
`llvm::TerminatorInst::TerminatorInst(llvm::Instruction::TermOps, 
llvm::BasicBlock*)'
c:/projects/build/MinGW/llvm-4-1/Debug/lib/LLVMProfilePaths.o(.text$_ZN4llvm10BranchInstC1EPNS_10BasicBlockES2_+0x74):c:/MinGW/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/ext/new_allocator.h: 
undefined reference to `llvm::BranchInst::init(llvm::BasicBlock*)'
c:/projects/build/MinGW/llvm-4-1/Debug/lib/LLVMProfilePaths.o(.text$_ZN4llvm10BranchInstC1EPNS_10BasicBlockES2_PNS_5ValueES2_+0x52):c:/MinGW/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/ext/new_allocator.h: 
undefined reference to 
`llvm::TerminatorInst::TerminatorInst(llvm::Instruction::TermOps, 
llvm::BasicBlock*)'
c:/projects/build/MinGW/llvm-4-1/Debug/lib/LLVMProfilePaths.o(.text$_ZN4llvm10BranchInstC1EPNS_10BasicBlockES2_PNS_5ValueES2_+0x82):c:/MinGW/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/ext/new_allocator.h: 
undefined reference to `llvm::BranchInst::init(llvm::BasicBlock*, 
llvm::BasicBlock*, llvm::Value*)'
c:/projects/build/MinGW/llvm-4-1/Debug/lib/LLVMScalarOpts.o(.text$_ZN4llvm10UnwindInstC1EPNS_10BasicBlockE+0x1c): 
In function `ZN4llvm14TerminatorInstD2Ev':
c:/projects/src/llvm-4/llvm/include/llvm/Instructions.h: undefined reference 
to `llvm::TerminatorInst::TerminatorInst(llvm::Instruction::TermOps, 
llvm::BasicBlock*)'
c:/projects/build/MinGW/llvm-4-1/Debug/lib/LLVMScalarOpts.o(.text$_ZN4llvm15UnreachableInstC1EPNS_10BasicBlockE+0x1c):c:/projects/src/llvm-4/llvm/include/llvm/Instructions.h: 
undefined reference to 
`llvm::TerminatorInst::TerminatorInst(llvm::Instruction::TermOps, 
llvm::BasicBlock*)'
collect2: ld returned 1 exit status
-------------------------

Henrik.


=============================================================
Henrik Bach
LLVM Open Source Developer

e-mail: henrik_bach_llvm at hotmail.com
=============================================================
'Nothing is impossible; The impossible just takes longer time :)'
- Inventor of a new energy saver light bulp from Denmark.

No software patents - Thank you Poland: 
http://www.nosoftwarepatents.com/en/m/intro/app0411.html
Got Freedom?
Software Freedom Day - 28th of August
http://www.softwarefreedomday.org/
=============================================================

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/




More information about the llvm-dev mailing list