[LLVMdev] Undefined reference to `llvm::sys::CopyFile(llvm::sys::Path const&, llvm::sys::P
Henrik Bach
henrik_bach_llvm at hotmail.com
Thu Dec 23 10:44:55 PST 2004
Hi,
Can anyone tell me why CopyFile is the only undefined reference from
Path.cpp?
---------------
llvm[2]: Linking Debug executable gccld
c:/projects/build/MinGW/llvm-1-1/tools/gccld/Debug/gccld.o(.text+0x439): In
function `Z15EmitShellScriptPPc':
c:/projects/src/llvm-1/llvm/tools/gccld/gccld.cpp:127: undefined reference
to `llvm::sys::CopyFile(llvm::sys::Path const&, llvm::sys::Path const&)'
collect2: ld returned 1 exit status
---------------
Path.cpp:
---------------
void
CopyFile(const sys::Path &Dest, const sys::Path &Src) {
if (!::CopyFile(Src.c_str(), Dest.c_str(), false))
ThrowError("Can't copy '" + Src.toString() +
"' to '" + Dest.toString() + "'");
}
---------------
Henrik.
=============================================================
Henrik Bach
Open Source Developer
e-mail: henrik_bach_llvm at hotmail.com
=============================================================
Got Freedom?
Software Freedom Day 2004 - 28th of August
http://www.softwarefreedomday.org/
=============================================================
_________________________________________________________________
Log på MSN Messenger direkte fra nettet http://webmessenger.msn.com/
More information about the llvm-dev
mailing list