[LLVMdev] FileUtilities.cpp error: `close' undeclared

Reid Spencer reid at x10sys.com
Wed Dec 15 11:04:26 PST 2004


Yes, that file is not portable. I'm working on eliminating the file,
incrementally. A day or two more and it will either be 100% portable or
gone.

Re close vs fclose, fclose takes a FILE* argument while close takes an
int.

Reid.

On Wed, 2004-12-15 at 10:58, Henrik Bach wrote:
> Hi,
> 
> When I compile FileUtilities.cpp I get this error:
> ----------------
> llvm[1]: Compiling FileUtilities.cpp for Debug build
> c:/projects/src/llvm-1/llvm/lib/Support/FileUtilities.cpp: In destructor 
> `llvm::FDHandle::~FDHandle()':
> c:/projects/src/llvm-1/llvm/lib/Support/FileUtilities.cpp:79: error: `close' 
> undeclared (first use this function)
> ----------------
> Shouldn't function close be fclose declared from <stdio.h> while we deal 
> with file descriptors?
> 
> 
> 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/20041215/1d7b1879/attachment.sig>


More information about the llvm-dev mailing list