cURL / Mailing Lists / curl-library / Single Mail


Re: ftp upload example question

From: Dima Yashkir <>
Date: Thu, 6 Sep 2007 10:55:38 -0400

> This is happening because libcurl and your application have different
> ideas
> about how large a 'curl_off_t' type is. You most probably need to add some
> define or something (like _FILE_OFFSET_BITS set to 64) to build your app
> with
> proper 64bit file size support.
> Alternatively, you change your app to use CURLOPT_INFILESIZE (without the
> _LARGE) as that takes a plain 32bit value, which seems to be what you're
> currently is passing to it.

Thank you, I commented out the option for size since I noticed that comment
says that it is optional and everything seems to work fine now. Is there a
specific reason for using it? I guess it is for transferring part/parts of a

thank you

Received on 2007-09-06