Hi,
I'm trying to rebuild lazarus. 0.9.30.4-0. with fpc 2.6.0. In linux mint 13(Maya).
My build configuration is :
"LCL Widget Type" = gtk 2
"Target directory" : /home/eko/.lazarus/bin/
"Build All"
"Target OS" = Linux
"Target CPU" = x86_64
"Clean All" = True
"With Packages" = True
"Options" =
- -Xg
- -Fu/usr/lib/lazarus/0.9.30.4/components/*
- -Fi/usr/lib/lazarus/0.9.30.4/components/printers/unix
- -Fu/usr/lib/lazarus/0.9.30.4/components/printers/unix
and add -CX options in /etc/fpc.cfg to enable smart link.
while compiling, I got some funny error:
/usr/lib/lazarus/0.9.30.4/components/tachart/tachartutils.pas(40,22) Error: Identifier not found "class"
/usr/lib/lazarus/0.9.30.4/components/tachart/tachartutils.pas(40,42) Error: Error in type definition
/usr/lib/lazarus/0.9.30.4/components/tachart/tachartutils.pas(41,30) Error: Identifier not found "class"
/usr/lib/lazarus/0.9.30.4/components/tachart/tachartutils.pas(41,31) Error: Illegal expression
/usr/lib/lazarus/0.9.30.4/components/tachart/tachartutils.pas(41,43) Error: Error in type definition
/usr/lib/lazarus/0.9.30.4/components/tachart/tachartutils.pas(42,25) Error: Identifier not found "class"
/usr/lib/lazarus/0.9.30.4/components/tachart/tachartutils.pas(42,26) Error: Illegal expression
/usr/lib/lazarus/0.9.30.4/components/tachart/tachartutils.pas(42,38) Error: Error in type definition
/usr/lib/lazarus/0.9.30.4/components/tachart/tachartutils.pas(43,25) Error: Identifier not found "class"
the code on TAChartUtils.pp is like this
type
EChartError = class(Exception);
EChartIntervalError = class(EChartError);
EListenerError = class(EChartError);
EDrawDataError = class(EChartError);
tachartutils.pas(40,22) pointing to 'class'. Why class detected as identifier? not as an reserved word??
"how to solve this?"
and
"why this error only come on 'TAChartUtils.pp' while another file compiled smoothly?"
someone has report same problem in 2009. on http://bugs.freepascal.org/view.php?id=12976. But I still can't find the solution.