delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <BAY106-W13319EE03A411E19B38C19C8910@phx.gbl> |
From: | Hongliang Wang <loudwang AT msn DOT com> |
To: | <cygwin AT cygwin DOT com> |
Subject: | RE: How does Cygwin support Large files? |
Date: | Mon, 29 Oct 2007 14:46:43 +0000 |
In-Reply-To: | <20071029144309.GG20400@calimero.vinschen.de> |
References: | <BAY106-W31B768234A8E2C3809C049C8910 AT phx DOT gbl> <20071029144309 DOT GG20400 AT calimero DOT vinschen DOT de> |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id l9TEkpso009738 |
Ok, Thanks! > Date: Mon, 29 Oct 2007 15:43:09 +0100 > From: corinna-cygwin AT cygwin DOT com > To: cygwin AT cygwin DOT com > Subject: Re: How does Cygwin support Large files? > > On Oct 29 14:32, Hongliang Wang wrote: >> >> Hello all, >> >> My platform is WindowsXP+SP2, Cygwin DLL release version is 1.5.24-2 >> >> I am trying to make my program support large files, so in stdio.h I found >> >> 356 #ifdef __LARGE64_FILES >> 357 #if !defined(__CYGWIN__) || defined(_COMPILING_NEWLIB) >> >> However, when I tried to compile with _COMPILING_NEWLIB, it fails > > Never do that. It should only be set when compiling newlib itself. > >> $ gcc -Wall -D_COMPILING_NEWLIB test.c -o test >> /cygdrive/c/DOCUME~1/wan/LOCALS~1/Temp/ccUmErSH.o:test.c:(.text+0x3a): undefined >> reference to `_fopen64' >> collect2: ld returned 1 exit status >> >> It seems as if fopen64 is mapped to _fopen64, while the latter is missing. >> >> Could anybody tell me how to compile with _COMPILING_NEWLIB flag or how does Cygwin support large files? > > Don't compile with _COMPILING_NEWLIB. 64 bit file access is the natural > file access type for Cygwin. off_t is 8 bytes. There are no foo64 > functions for that reason. Just use fopen and friends and you get 64 > bit file access for free. > > > Corinna > > -- > Corinna Vinschen Please, send mails regarding Cygwin to > Cygwin Project Co-Leader cygwin AT cygwin DOT com > Red Hat > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Problem reports: http://cygwin.com/problems.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > _________________________________________________________________ Connect to the next generation of MSN Messenger http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |