Mail Archives: djgpp/1997/08/16/20:04:41
Lyle wrote:
> I have recenlty come across a perculiar occurence. I posted a message
> with an "unexplainable" sigsegv fault. Sure, i knew it had to be
> something with my program but what? Well the explanation is quite
> trivial. For some reason, the DJGPP compiled version wasn;t reading my
> configuration files properly. The configuration files were written by
> the exact same code, compiled under Borland TC++ V3.0? Is this normal?
> Is there something i;m doing wrong (most certainly!).
are your config files binary? are you reading them in byte-by-byte and
setting up your structures, or are you reading in aggregates? presumably
the latter. then that code will break in any compiler whose data sizes
and layout of structures does not match tc. remember, djgpp is 32 bit
whereas tc is 16.
--
Sinan
*******************************************************************
A. Sinan Unur WWWWWW
|--O+O
mailto:sinan DOT unur AT cornell DOT edu C ^
http://www.people.cornell.edu/pages/asu1/ \ ~/
*******************************************************************
- Raw text -