Mail Archives: djgpp/1997/08/13/13:04:02
Hi,
A. Sinan Unur wrote:
>
> 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/ \ ~/
> *******************************************************************
yer, i was just reading it in straight to the structure. As i was just
informed, ints are 32 bits in djgpp and 16 in tc.
Thanks for your reply,
Lyle
--
NOTE: Remove The comment "NO_SPAM" To Reply via Email!
-------------------------------[ **NEW ADDRESS**
lpak1 AT ccds DOT cc DOT monash DOT edu DOT au]
" Hello Chevra Kadish, You Kill 'em, We Chill 'em " .----,
| oO |
HTTP://www-personal.monash.edu.au/~lpak1/ | \/ |
`----'
- Raw text -