'undefined reference to'
refi64 opened this issue · comments
I am trying to build llvmpy and are getting lots of 'undefined reference to' errors. Example:
build\temp.win32-2.7\Release\llvmpy\api.o:api.cpp:(.text+0xb539): undefined reference to `llvm::Linker::releaseModule()'
Here is the full errors list:
It seems that there is a llvm-tblgen
executable from llvm 3.2 in your LLVM 3.3 installation. Can you check the output of llvm-tblgen --version
?
I have both LLVM 3.2 and 3.4 SVN installed. The 3.2 is the only one in my path. I can't see why llvmpy would use the wrong one...
For windows, the setup script uses a dummy llvm-config and relies on llvm-tblgen. You can try modify the dummy llvm-config (https://github.com/llvmpy/llvmpy/blob/master/llvm-config-win32.py).
Already tried that. Still doesn't work. Here's my config script: http://pastebin.com/Yn9HDZqe.
Alternatively, you can get LLVM from Anaconda for free: https://store.continuum.io/cshop/anaconda/
I think I'll do that...I can't believe I was looking for it pre-built and missed that.