Tom Schneider wrote:
I'm using
GNU Pascal version 20000707, based on gcc-2.95.2 19991024 (release). Copyright (C) 1987, 1989, 1992-2000 Free Software Foundation, Inc.
while my student Ryan is using:
GNU Pascal version 2.1 (20020510), based on gcc-2.95.3 20010315 (release). Copyright (C) 1987-2002 Free Software Foundation, Inc.
I have no problem compiling with
gpc --standard-pascal \ --transparent-file-names \ --no-mixed-comments \ -O0 \ -Wall \ $program.p -o $program
but Ryan has trouble compiling a program that has a call to the page() function:
alist.p:3960: undeclared identifier `Page' (first use in this routine)
To my surprise, this is listed:
http://www.gnu-pascal.de/gpc/Page.html
as "Page is an ISO 10206 Extended Pascal extension."
Did GPC change between these compilers? Does the use of page() mean I cannot use --standard-pascal ? page() was in the original book! It is listed on page 105 (Appendix A) as a standard procedure!
I don't remember why it was changed, but apparently it was wrong in 2.1, indeed. In the current releases it's correct (again).
If you can recompile 2.1, here's a fix.
Frank