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

Reid Spencer reid at x10sys.com
Thu Dec 23 16:07:16 PST 2004


No, although its declared in the Path.h file, its actually not in the
Path class. Have a look. Not sure why you're still seeing that problem.
The same change to Unix/Path.cpp fixed the same problem on Cygwin and
Linux.

Reid.

On Thu, 2004-12-23 at 15:48, Henrik Bach wrote:
> 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/
> 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- 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/20041223/3051470c/attachment.sig>


More information about the llvm-dev mailing list