Markus Gerwinski wrote:
I attached some test code to this mail that reproduces a bug in GPC that just occurred in one of my projects. In short: When I link a Pascal unit to a C project, and a function in the Pascal unit calls RuntimeError, this results in a segfault when called from within the C code. (I'm using gpc-20050331 together with gcc-3.4.3.)
I think the problem is that the Pascal runtime is not initialized (see the thread "Default linker names").
Pure Pascal projects are not affected, there the RuntimeError just works fine.
Regards,
Adriaan van Os