[LLVMdev] Undefined referenceto`llvm::sys::CopyFile(llvm::sys::Path const&, llvm::sys::P

Henrik Bach henrik_bach_llvm at hotmail.com
Thu Dec 23 15:48:26 PST 2004


Hi Reid,

The error still exists. However, looking on the function in Win32/Path.cpp:
--------------
void
sys::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() + "'");
}
--------------

I notice, that the function is living in the sys namespace. Shouldn't it 
live in the Path class instead? A copy-past to fast ;-)


Henrik.

_________________________________________________________________
Log på MSN Messenger direkte fra nettet  http://webmessenger.msn.com/




More information about the llvm-dev mailing list