As a cross-check on my code, I do a compile on all the subroutines, and the main. I have a single compile with all the subroutines/functions INCLUDE'ed and the last INCLUDE is the main driver. I have four of these.
Two of these compile with no problems. Two will not. Indeed before V8.20.0, they ALL compiled successfully.
I removed all the functions/subroutines and only INCLUDE'ed the main routine, and that will not compile properly. With a RESOURCE at the end of the main, it yields an error in the resource file. Otherwise, it will end up in an endless loop. If I use the same automated process to compile the Main routine by itself (no additional INCLUDE's involved) the file compiles with no errors.
Also interesting is the .LIS file for the failed compile differs from the captured output; the capture shows the errors detected, but the LIS file does not.
LIS file with the INCLUDE
Silverfrost FTN95/Win32 Ver 8.20.0 c-masterREPAIR_Routines.FOR Sat Jan 20 21:33:48 2018
Compiler used [C:\Program Files (x86)\Silverfrost\FTN95\FTN95.exe]
Salflibc path [C:\Program Files (x86)\Silverfrost\FTN95\salflibc.dll]
Salflibc version [20.1.18.9]
Compiler options in effect:
CFPP;DEFINT_KIND 3;FPP;IGNORE;IMPLICIT_NONE;INCLUDE;LIST;SAVE;
WIDE_SOURCE;WINDOWS;
0001 !! include 'c-masterCFUNC_Functions.for' AT 0
0002 !! include 'logplot\logplot_colors.for' AT 0
0003 !! INCLUDE 'CBLOCK.FOR' AT 0
0004 !! INCLUDE 'cblock_init.FOR' AT 0
0005 !!!#define INIT_ME 1 AT 0
0006 !! include 'cblock_BEDCODE_SPECIAL.for' AT 0
0007 !! include 'cblock_BEDLIST_MAINT.for' AT 0
0008 !! include 'cblock_BLOCK_DATA.for' AT 0
0009 !! include 'cblock_BLOCK_DATA2.for' AT 0
0010 !! include 'cblock_CLOGPLT.for' AT 0
0011 !! include 'cblock_IMPORT_HEADER_DEFINITIONS.for' AT 0
0012 !! include 'cblock_KML_LOGHEADER.for' AT 0
0013 !! include 'cblock_POLYGON.for' AT 0
0014 !! include 'cblock_QUAD_SPECIAL.for' AT 0
0015 !! include 'cblock_REFERENCE_SPECIAL.for' AT 0
0016 !! include 'cblock_ROCKDEF_ROCKCOM.for' AT 0
0017 !! include 'cblock_SCREEN_INS.for' AT 0
0018 !! include 'cblock_SCRIPT_DATA.for' AT 0
0019 !! include 'cblock_STATE_PLANE_ZONES.for' AT 0
0020 !! include 'cblock_TRACT_SPECIAL.for' AT 0
0021 !!#undef INIT_ME AT 0
0022 include 'catalog_repair.for' AT 0
*** Unsuccessful compilation of resource script
*** Compilation failed
Captured via a re-direct with the INCLUDE
[FTN95/Win32 Ver. 8.20.0 Copyright (c) Silverfrost Ltd 1993-2017]
Licensed to: William Horger
Organisation: CJD Software
NO ERRORS [<CREPAIR> FTN95 v8.20.0]
[Silverfrost SRC/WIN32 Ver 4.06 Copyright (c) Silverfrost Ltd 2017]
0004 INCLUDE'catalog_repair.for'
*** <String> found where a resource type was expected
1 ERRORS [<SRCTEMP@SRC/WIN32 Ver 4.06]
*** Compilation failed
*** Unsuccessful compilation of resource script
1 ERROR [c-masterREPAIR_Routines.FOR] - Compilation failed.
The line for the compiler (main file only, clean compile) is:
Salflibc path [C:\Program Files (x86)\Silverfrost\FTN95\salflibc.dll] Salflibc version [20.1.18.9] Compiler options in effect: CFPP;DEFINT_KIND 3;FPP;IGNORE;IMPLICIT_NONE;INCLUDE;LIST;SAVE; WIDE_SOURCE;WINDOWS; 0001 !! include 'c-masterCFUNC_Functions.for' AT 0 0002 !! include 'logplot\logplot_colors.for' AT 0 0003 !! INCLUDE 'CBLOCK.FOR' AT 0 0004 !! INCLUDE 'cblock_init.FOR' AT 0 0005 !!!#define INIT_ME 1 AT 0 0006 !! include 'cblock_BEDCODE_SPECIAL.for' AT 0 0007 !! include 'cblock_BEDLIST_MAINT.for' AT 0 0008 !! include 'cblock_BLOCK_DATA.for' AT 0 0009 !! include 'cblock_BLOCK_DATA2.for' AT 0 0010 !! include 'cblock_CLOGPLT.for' AT 0 0011 !! include 'cblock_IMPORT_HEADER_DEFINITIONS.for' AT 0 0012 !! include 'cblock_KML_LOGHEADER.for' AT 0 0013 !! include 'cblock_POLYGON.for' AT 0 0014 !! include 'cblock_QUAD_SPECIAL.for' AT 0 0015 !! include 'cblock_REFERENCE_SPECIAL.for' AT 0 0016 !! include 'cblock_ROCKDEF_ROCKCOM.for' AT 0 0017 !! include 'cblock_SCREEN_INS.for' AT 0 0018 !! include 'cblock_SCRIPT_DATA.for' AT 0 0019 !! include 'cblock_STATE_PLANE_ZONES.for' AT 0 0020 !! include 'cblock_TRACT_SPECIAL.for' AT 0 0021 !!#undef INIT_ME AT 0 0022 include 'catalog_repair.for' AT 0 *** Unsuccessful compilation of resource script *** Compilation failedCaptured via a re-direct with the INCLUDE
[FTN95/Win32 Ver. 8.20.0 Copyright (c) Silverfrost Ltd 1993-2017] Licensed to: William Horger Organisation: CJD Software NO ERRORS [<CREPAIR> FTN95 v8.20.0] [Silverfrost SRC/WIN32 Ver 4.06 Copyright (c) Silverfrost Ltd 2017] 0004 INCLUDE'catalog_repair.for' *** <String> found where a resource type was expected 1 ERRORS [<SRCTEMP@SRC/WIN32 Ver 4.06] *** Compilation failed *** Unsuccessful compilation of resource script 1 ERROR [c-masterREPAIR_Routines.FOR] - Compilation failed.The line for the compiler (main file only, clean compile) is:
Salflibc path [C:\Program Files (x86)\Silverfrost\FTN95\salflibc.dll] Salflibc version [20.1.18.9] Compiler options in effect: CFPP;DEFINT_KIND 3;FPP;IGNORE;IMPLICIT_NONE;INCLUDE;LIST;SAVE; WIDE_SOURCE;WINDOWS; 0001 !! include 'c-masterCFUNC_Functions.for' AT 0 0002 !! include 'logplot\logplot_colors.for' AT 0 0003 !! INCLUDE 'CBLOCK.FOR' AT 0 0004 !! INCLUDE 'cblock_init.FOR' AT 0 0005 !!!#define INIT_ME 1 AT 0 0006 !! include 'cblock_BEDCODE_SPECIAL.for' AT 0 0007 !! include 'cblock_BEDLIST_MAINT.for' AT 0 0008 !! include 'cblock_BLOCK_DATA.for' AT 0 0009 !! include 'cblock_BLOCK_DATA2.for' AT 0 0010 !! include 'cblock_CLOGPLT.for' AT 0 0011 !! include 'cblock_IMPORT_HEADER_DEFINITIONS.for' AT 0 0012 !! include 'cblock_KML_LOGHEADER.for' AT 0 0013 !! include 'cblock_POLYGON.for' AT 0 0014 !! include 'cblock_QUAD_SPECIAL.for' AT 0 0015 !! include 'cblock_REFERENCE_SPECIAL.for' AT 0 0016 !! include 'cblock_ROCKDEF_ROCKCOM.for' AT 0 0017 !! include 'cblock_SCREEN_INS.for' AT 0 0018 !! include 'cblock_SCRIPT_DATA.for' AT 0 0019 !! include 'cblock_STATE_PLANE_ZONES.for' AT 0 0020 !! include 'cblock_TRACT_SPECIAL.for' AT 0 0021 !!#undef INIT_ME AT 0 0022 include 'catalog_repair.for' AT 0 *** Unsuccessful compilation of resource script *** Compilation failedCaptured via a re-direct with the INCLUDE
[FTN95/Win32 Ver. 8.20.0 Copyright (c) Silverfrost Ltd 1993-2017] Licensed to: William Horger Organisation: CJD Software NO ERRORS [<CREPAIR> FTN95 v8.20.0] [Silverfrost SRC/WIN32 Ver 4.06 Copyright (c) Silverfrost Ltd 2017] 0004 INCLUDE'catalog_repair.for' *** <String> found where a resource type was expected 1 ERRORS [<SRCTEMP@SRC/WIN32 Ver 4.06] *** Compilation failed *** Unsuccessful compilation of resource script 1 ERROR [c-masterREPAIR_Routines.FOR] - Compilation failed.The line for the compiler (main file only, clean compile) is:
Salflibc path [C:\Program Files (x86)\Silverfrost\FTN95\salflibc.dll] Salflibc version [20.1.18.9] Compiler options in effect: CFPP;DEFINT_KIND 3;FPP;IGNORE;IMPLICIT_NONE;INCLUDE;LIST;SAVE; WIDE_SOURCE;WINDOWS; 0001 !! include 'c-masterCFUNC_Functions.for' AT 0 0002 !! include 'logplot\logplot_colors.for' AT 0 0003 !! INCLUDE 'CBLOCK.FOR' AT 0 0004 !! INCLUDE 'cblock_init.FOR' AT 0 0005 !!!#define INIT_ME 1 AT 0 0006 !! include 'cblock_BEDCODE_SPECIAL.for' AT 0 0007 !! include 'cblock_BEDLIST_MAINT.for' AT 0 0008 !! include 'cblock_BLOCK_DATA.for' AT 0 0009 !! include 'cblock_BLOCK_DATA2.for' AT 0 0010 !! include 'cblock_CLOGPLT.for' AT 0 0011 !! include 'cblock_IMPORT_HEADER_DEFINITIONS.for' AT 0 0012 !! include 'cblock_KML_LOGHEADER.for' AT 0 0013 !! include 'cblock_POLYGON.for' AT 0 0014 !! include 'cblock_QUAD_SPECIAL.for' AT 0 0015 !! include 'cblock_REFERENCE_SPECIAL.for' AT 0 0016 !! include 'cblock_ROCKDEF_ROCKCOM.for' AT 0 0017 !! include 'cblock_SCREEN_INS.for' AT 0 0018 !! include 'cblock_SCRIPT_DATA.for' AT 0 0019 !! include 'cblock_STATE_PLANE_ZONES.for' AT 0 0020 !! include 'cblock_TRACT_SPECIAL.for' AT 0 0021 !!#undef INIT_ME AT 0 0022 include 'catalog_repair.for' AT 0 *** Unsuccessful compilation of resource script *** Compilation failedCaptured via a re-direct with the INCLUDE
[FTN95/Win32 Ver. 8.20.0 Copyright (c) Silverfrost Ltd 1993-2017] Licensed to: William Horger Organisation: CJD Software NO ERRORS [<CREPAIR> FTN95 v8.20.0] [Silverfrost SRC/WIN32 Ver 4.06 Copyright (c) Silverfrost Ltd 2017] 0004 INCLUDE'catalog_repair.for' *** <String> found where a resource type was expected 1 ERRORS [<SRCTEMP@SRC/WIN32 Ver 4.06] *** Compilation failed *** Unsuccessful compilation of resource script 1 ERROR [c-masterREPAIR_Routines.FOR] - Compilation failed.The line for the compiler (main file only, clean compile) is: [quote:52b198a7d1]Z:\CMASTERF95>FTN95 catalog_repair.for /ignore 242 /ignore 767 /ignore 520 /ignore 21 /ignore 179 /ignore 1031 /DEFINT_KIND 3 /Implicit_None /SAVE /FPP /CFPP /WINDOWS /wide_source /Implicit_None /include .\logplot /list CATALOG_REPAIR.lis > 'WIDE_repair_only.TXT'
while the INCLUDE compile is: [quote:52b198a7d1]Z:\CMASTERF95>FTN95 c-masterREPAIR_Routines.for /ignore 242 /ignore 767 /ignore 520 /ignore 21 /ignore 179 /ignore 1031 /DEFINT_KIND 3 /Implicit_None /SAVE /FPP /CFPP /WINDOWS /wide_source /Implicit_None /include .\logplot /list C-asterREPAIR_Routines.lis >'WIDE_repair.TXT'