Hi, Tom! Hi, all!
According to Tom Dye:
A while back I forwarded a bit of extended Pascal code that I thought should compile with gpc, but doesn't. [...] I suspect that I have found something that gpc does not do correctly, ...
Indeed, but I have posted a patch to `module.c' at this list on 10 November that fixes the problem (and causes some others which are fixed meanwhile in my development version;-). Your example modules work fine on my Linux box.
..., but I am far from confident that my suspicion is correct. Here are my other suspicions:
a) I don't have gpc built correctly. I had some problems getting gpc to compile on my Linux box and can't really say what I did to make it compile--that is which change really made a difference. Could I be having problems with an incorrectly built gpc?
Did you apply the patch from 10 November? (But don't throw your working GPC away because the patch causes other problems which will be fixed in the next beta release.)
b) the code in examples 1) and 3) relies on a feature of extended Pascal that gpc does not yet implement. I am relatively new to gpc and to extended Pascal and can't answer this one myself. Does the code in examples 1) and 3) fail because of an unimplemented feature of extended Pascal?
No. The last of the features needed to compile 3), export renaming, was implemented into GPC somewhere in spring 1997.
Greetings,
Peter
Dipl.-Phys. Peter Gerwinski, Essen, Germany, free physicist and programmer peter.gerwinski@uni-essen.de - http://home.pages.de/~peter.gerwinski/ [971005] maintainer GNU Pascal [971001] - http://home.pages.de/~gnu-pascal/ [971005]