I haven't used ezjson yet.
I just wanted to compile sample programs from
https://wiki.freepascal.org/Custom_AttributesUnfortunately, I get errors like:
tcustomattr.lpr(4,2) Warning: Illegal compiler switch "PREFIXEDATTRIBUTES+"
tcustomattr.lpr(7,25) Error: Identifier not found "TCustomAttribute"
tcustomattr.lpr(7,41) Error: class type expected, but got "<erroneous type>"
tcustomattr.lpr(15,4) Fatal: Syntax error, "BEGIN" expected but "[" found
testattributes.lpr(19,31) Error: Identifier not found "TCustomAttribute"
testattributes.lpr(19,47) Error: class type expected, but got "<erroneous type>"
testattributes.lpr(38,4) Fatal: Syntax error, "BEGIN" expected but "[" found
I also have FPC 3.2.0 on Linux (Fedora 32) and I get the same errors as on Windows.
Thought you could help me since you use these attributes. I still don't understand why it doesn't work for me.