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

Reid Spencer reid at x10sys.com
Tue Dec 14 11:12:21 PST 2004


Yeah, that's confirmed. Make sure you update include/llvm/System/Path.h
and the contents of lib/System then make clean and rebuild. Should fix
it

Reid.

On Tue, 2004-12-14 at 11:10, Chris Lattner wrote:
> 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?
> 
> -Chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20041214/5bb6ba77/attachment.sig>


More information about the llvm-dev mailing list