I am using Monentics 6.3 with service pack 1
I’ve been tring to compile libxml2 and keep getting errors invloving
fseeko. Heres the actual error:
/usr/qnx630/target/qnx6/usr/include/stdio.h:245: conflicting types for
fseeko' /usr/qnx630/target/qnx6/usr/include/stdio.h:175: previous declaration of fseeko’
I tracked the error to sys/platform.h before I got lost. If you somehow
include sys/platform.h, then define _FILE_OFFSET_BITS to 64, then
include stdio.h you get the error.
In 3 files libxml2 includes string.h before their libxml.h (which
defines _FILE_OFFSET_BITS to 64 and includes stdio.h). If I move the
string.h below libxml.h everthing compiles.
I was able to reproduce the problem out side of libxml2. Try to compile:
#define _FILE_OFFSET_BITS 64
Move #include <sys/platform.h> below #include <stdio.h> and it will compile.
I believe this was not a problem before service pack 1.