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
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:
libgrx 1.0.4 from sunsite
"Being on time is like being on fire."