Christopher Jefferson wrote:
Note: I have another project which is hung up on a bug with the gcc compiler on Ubuntu. (Ubuntu bug # 629092). I've been unable to get anyone to take it seriously though. The bug is sufficiently fundamental that I wouldn't expect the serialization library to work on that platform.
There is no bug in the compiler, your program is faulty. The problem is that you are including
, which includes in main.c before defining #define _FILE_OFFSET_BITS 64. The second include in TESTRIO is then ignored. This leads to inconsistent definitions of structures in the two different files and a seg fault. You can either:
1) put #define _FILE_OFFSET_BITS 64 at the top of main.c 2) include "testrio.h" before
in main.c either of these fix your problem.
I will try this. I'm not sure it's fair to characterise my example as faulty though. In any case, Thank you very much. Robert Ramey