[LLVMdev] Undefined reference to `llvm::sys::CopyFile(llvm::sys::Path const&, llvm::sys::P
Reid Spencer
reid at x10sys.com
Thu Dec 23 11:29:09 PST 2004
Get the latest version. I committed a fix to Path.cpp last night. It
wasn't being defined in the sys:: namespace which is why its undefined.
Reid.
On Thu, 2004-12-23 at 10:44, Henrik Bach wrote:
> 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/
>
> _______________________________________________
> 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/92dd277b/attachment.sig>
More information about the llvm-dev
mailing list