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]
Hello Peter,
On Mon, 17 Nov 1997, Peter Gerwinski wrote:
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. Did you apply the patch from 10 November?
Duly applied on 10 November. Perhaps one of the problems caused by the patch, now fixed on your development version, is leading my patched gpc to fail. My gpc with the 10 November patch doesn't negotiate the code example from the standard.
(But don't throw your working GPC away because the patch causes other problems which will be fixed in the next beta release.)
Oops! Another lesson learned the hard way! But it seems as if I'll have to wait for the next beta, since neither the 971001 beta nor the patched version will compile the code I have. Or could you recommend a previous beta or other version that I might use in the interim?
Thanks once again, Tom
Thomas S. Dye, Ph.D. Home: 813 16th Avenue, Honolulu, Hawaii 96816. Voice (808) 734-2087. Work: International Archaeological Research Institute, Inc., 949 McCully St., Suite 5, Honolulu, Hawaii 96826. Voice (808) 946-2548; Fax 943-0716.