I'm trying to compile the library under Delphi XE3
procedure TSingleImage.Assign(Source: TPersistent);
begin
if Source = nil then
begin
Create;
end
Compiler shows error:
[dcc32 Error] ImagingClasses.pas(583): E2382 Cannot call constructors using instance variables
but builddemos.bat and buildLibrary.bat does their work without any error (
what do I do wrong?
You are not doing anything wrong.
Compiler in XE3 is just more strict and does not allow calling constructors inside instances.
builddemos.bat and buildLibrary.bat probably uses older Delphi version that you have installed (do you?).
Solution is to use latest version of Imaging from here http://galfar.vevb.net/imaging/smf/index.php/topic,806.0.html
or use older Delphi version or FPC.