I've been writing some basic graphics programs under Linux 2.0 using
g++ and libgrx (the Linux port of the djgpp graphics library). I get
random segmentation faults with my programs. Sometimes they segfault
when they exit, sometimes the segfault when they start. The behaviour
is consistent for any particular program, but if I change it around a
little (add debugging cout << lines, for example), the behaviour can
change.
I haven't noticed such problems when I build applications without
libgrx, so that seems likely to be the problem. Furthermore, the example
program cliptest from the Grx package compiled with gcc works fine, but
when compiled with g++ it segfaults on exit, which leads me to believe
that there is a problem in the interaction between libgrx and g++.
Does anyone have any ideas on how I can track down the problem and fix
it? Here are the details of my setup:
Linux 2.0.7
libc 5.3.12
libg++ 27.1.4
gcc 2.7.2
ld.so 1.7.14
libgrx 1.0.4 from sunsite
Thanks,
Ed
--
--
"Being on time is like being on fire."