In message 20060719225003.GA6121@artax.karlin.mff.cuni.cz, Emil Jerabek ejer5183@artax.karlin.mff.cuni.cz writes
On Wed, Jul 19, 2006 at 10:00:28PM +0100, Martin Liddle wrote:
As a demonstration the program
Program Test_err; Var errno:integer; external name 'errno'; Begin Writeln(@Error number is ',Errno); End;
Compiles but fails to link with 20060325 :
I'd guess the problem is that according to the C standard, errno does not have to be a variable, it could be a macro. You may try to use a C wrapper, like this (untested):
Thanks, that seems to work for a test program and allows one of my actual programs to link. It segfaults when run but I need to dig deeper to find the problem.