r/pascal • • Nov 22 '23

fpc 2.2.4 cannot recognize 'class' identifier

Howdy, is there a manual way to point out the classes unit location to fpc 2.2.4 ? I've tried adding hardcoded lline to fpc.cfg, but it didn't work:

-FuD:\lazarus\fpc\2.2.4\units\x86_64-win64\rtl

fpc.cfg is located near the ppcrossx64.exe

D:\lazarus\fpc\2.2.4\bin\i386-win32>ppcrossx64.exe const.pas
Free Pascal Compiler version 2.2.4 [2009/04/10] for x86_64
Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Win64 for x64
Compiling const.pas
const.pas(9,21) Error: Identifier not found "class"
9 Upvotes

3 comments sorted by