Hi everyone,
Finally gotten an old program to a state that the compiler has almost stopped telling interesting little titbits (errors) in the build.
Two things remain: an error and a warning:
1. The error indicates (to me) that the compiler thinks its generating an enormous code or that the linker/loader is doing strange things. Its not *that* big! Any ideas? I'm developing this on OSX 10.2.8. (I can't locate a la_symbol_ptr in the source code, btw.)
e.g.
/usr/bin/ld: /usr/lib/crt1.o can't create relocation entry for prebinding (address of section (__DATA,__la_symbol_ptr) more than 24-bits away from first segment, use -noprebind)
2. I've been warned about using underscores at the end of identifiers. Obviously I can rename them, but there is a reason for this naming. Does this really do any harm? I can understand issues with underscores at the start of identifiers, but at the end?
e.g.
ghj_aainit.pas: In procedure `load_action_table': ghj_aainit.pas:379: warning: identifiers should not end with an underscore
The full results are below.
Grant
[G4:Programming/ghjseqGPCIncludes/aa_prog_dir_port] gjacobs% gpc GHJ_AA.pas ghj_aaglobalunit.pas:395: warning: identifiers should not end with an underscore ghj_aainit.pas: In procedure `load_action_table': ghj_aainit.pas:379: warning: identifiers should not end with an underscore ghj_aadescriptors.pas: In function `default_feature_expr': ghj_aadescriptors.pas:546: warning: identifiers should not end with an underscore ghj_aamerge.pas: In procedure `merge_index': ghj_aamerge.pas:378: warning: constructing limited integer set `0 .. 255'; ghj_aamerge.pas:378: warning: use `--setlimit=NUMBER' to change the size limit at compile time. ghj_aaanalyse.pas: In function `match_integer': ghj_aaanalyse.pas:716: warning: identifiers should not end with an underscore /usr/bin/ld: /usr/lib/crt1.o can't create relocation entry for prebinding (address of section (__DATA,__la_symbol_ptr) more than 24-bits away from first segment, use -noprebind) /usr/bin/ld: /usr/lib/crt1.o can't create relocation entry for prebinding (address of section (__DATA,__la_symbol_ptr) more than 24-bits away from first segment, use -noprebind) /usr/bin/ld: /usr/lib/crt1.o can't create relocation entry for prebinding (address of section (__DATA,__la_symbol_ptr) more than 24-bits away from first segment, use -noprebind) collect2: ld returned 1 exit status