Unknown type name ‘off64_t’
I have a problem using Apache Portable Runtime on Ubuntu with GCC 4.8.1 The problem is that the off64_t from <sys/types.h> is not available when compiling with gcc . (When compiling with g++ everything work fine) Does anybody know which compiler switch to use to enable off64_t ? (I know that defining _LARGEFILE_SOURCE _LARGEFILE64_SOURCE avoids the problem, but wondering if this is the right way) To reproduce the error one can simply try to compile the following code: #include <sys/types.h> off64_t a_variable; off64_t is not a language defined type. No compiler switch will make it available.