I placed the {$H+} on the main program but got the same error. Does it have to be added to any units that have long strings?
I'm generating the unit files as I parse through a collection of hundreds of components.
Is there any harm in adding the {$H+} as a standard part of all my unit files?
[…] Is there any harm in adding the {$H+} as a standard part of all my unit files?You can write your own fpc.cfg (https://freepascal.org/docs-html/current/user/usersu10.html) and place -Sh (https://freepascal.org/docs-html/current/user/userap6.html#x193-200001r1) (the command line option to enable ANSI strings by default) in it.
When I try to compile my pascal code that has a string longer than 255 char I get the following error:
VeryLongNames_G.p(24,250) Fatal: String exceeds line