On 2 Apr 2013, at 8:33am, Bk <kbk...@gmail.com> wrote: > 1) i am using Linux 32bit on the embedded device, is it okey to give > "-D_FILE_OFFSET_BITS=64 " ?
Yep. Theoretically it may be a little slower or lack backward compatibility, but if it compiles at all, it should be fine. The other way around would be bad but that way is okay as long as your whole app uses it. > 2) what is the significance of -D_FILE_OFFSET_BITS=64" ? Standard file library sees this setting and knows to use the 64-bit variants of file operation functions and types. For instance, if you refer to 'off_t' in your code, it will be understood as 'off64_t'. You might instead want to look into _LARGEFILE64_SOURCE . I have no idea whether this does actually make a difference to SQLite, though. Warning: all of this is getting into territory where deep understanding of your compiler is useful. If you never intended to get this detailed, you may be going up the wrong avenue. Simon. _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users