|
Includes that cause compiler error messages |
Top Previous Next |
|
When syntax errors are made in the referenced files then the LST file has additional information about the name of the include file and the local line number (incerr.gms) as follows
INCLUDE D:\GAMSPDF\TRANMODL.GMS 15 PARAMETER COST(PLANT,MARKET) CALCULATED COST OF MOVING GOODS; 16 COST(PLANT,MARKET) = 50 + 1 * DISTANCE(PLANT,MARKET); 17 POSITIVE VARIABLES 18 SHIPMENTS(PLANT,MARKET) AMOUNT SHIPPED OVER A TRANSPORT ROUTE; 19 VARIABLES TCOST TOTAL COST OF SHIPPING OVER ALL ROUTES; 20 EQUATIONS TCOSTEQ TOTAL COST ACCOUNTING EQUATION 21 SUPPLYEQ(PLANT) LIMIT ON SUPPLY AVAILABLE AT A PLANT 22 DEMANDEQ(MARKET) MINIMUM REQUIREMENT AT A DEMAND MARKET; **** $195 **** LINE 8 IN FILE D:\GAMSPDF\TRANMODL.GMS
Note here the error message indicates the error is not in line 22 of the expanded listing but rather in line 8 of the included file. The IDE also jumps to the relevant line in the included file when the error discovery procedure is employed. |