Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2009-04

compiling lazarus : custombitmap.inc(293, 49) Error: absolute can only be associated with a var or const

4 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Benedikt Schindler

Hi,

when i try to compile lazarus i get a error message "absolute can only be associated with a var or const"
did someone have an idea why this happens?

do i have to be in a special Pascal language mode, to compile lazarus?

# Pascal language mode
# -Mfpc free pascal dialect (default)
# -Mobjfpc switch some Delphi 2 extensions on # -Mdelphi tries to be Delphi compatible
# -Mtp tries to be TP/BP 7.0 compatible # -Mgpc tries to be gpc compatible
# -Mmacpas tries to be compatible to the macintosh pascal dialects

greatings
Beni

output:
------------------------------------
Compiling graphics.pp
Compiling intfgraphics.pas
Compiling lclintf.pas
Compiling interfacebase.pp
Compiling lmessages.pp
Assembling lmessages
Compiling themes.pas
Compiling tmschema.pas
Assembling tmschema
Compiling comctrls.pp
Compiling lresources.pp
Compiling lazconfigstorage.pas
Assembling lazconfigstorage
Assembling lresources
Compiling lclintf.pas
Compiling interfacebase.pp
Assembling interfacebase
Assembling lclintf
Compiling imglist.pp
Compiling graphics.pp
Compiling intfgraphics.pas
Compiling icnstypes.pas
Assembling icnstypes
Compiling graphics.pp
custombitmap.inc(293,49) Error: absolute can only be associated with a var or const
custombitmap.inc(302,8) Warning: Local variable "SCB" does not seem to be initialized
fpimagebitmap.inc(108,49) Error: absolute can only be associated with a var or const
graphics.pp(2482) Fatal: There were 2 errors compiling module, stopping Fatal: Compilation aborted

Marc Weustink
to Benedikt Schindler
Benedikt Schindler wrote 5 lines
Hi, when i try to compile lazarus i get a error message "absolute can only be associated with a var or const" did someone have an idea why this happens?

You need either a svn version of Lazarus or a compiler < 2.3.1

see r12878

Marc

leledumbo
to Marc Weustink

Any entry in bug tracker about this? I'd like to know a workaround since I can't have LNet installed due to this issue (or improvement?).

Marc Weustink wrote
You need either a svn version of Lazarus or a compiler < 2.3.1