[LLVMdev] Linking tblgen: undefined reference to `llvm::sys::Path::Path(std::string)'

Chris Lattner sabre at nondot.org
Tue Dec 14 11:10:49 PST 2004

On Tue, 14 Dec 2004, Henrik Bach wrote:
> llvm[2]: Linking Debug executable tblgen
> c:/projects/build/MinGW/llvm-1-1/utils/TableGen/Debug/TableGen.o(.text+0x19da): 
> In function `main':
> c:/projects/src/llvm-1/llvm/utils/TableGen/TableGen.cpp:429: undefined 
> reference to `llvm::sys::Path::Path(std::string)'
> collect2: ld returned 1 exit status
> make[2]: *** [/C/projects/build/MinGW/llvm-1-1/Debug/bin/tblgen.exe] Error 1
> ------------------

The Path ctor changed from taking a string by value to a string by const 
reference.  It's possible that you have stale .o files compiled with the 
old prototype.  Can you try updating your tree, doing a make clean, then 
trying again?



More information about the llvm-dev mailing list