You are not logged in.
If you try to create a package for the library mORMot:
Error: E2201 Need imported data reference ($G) to access 'VarCopyProc' from unit 'SynCommons'
temporary fix:
...
{$ifdef PUREPASCAL}
...
{$else}
procedure RecordCopyInvoke;
asm
call System.@CopyRecord
end;
{+} // begin changes:
{.$IFDEF USESYNTABLEVARIANT}
procedure _VarCopyProc(var Dest: TVarData; const Source: TVarData);
begin
System.VarCopyProc(Dest, Source); // AV when System.VarCopyProc = nil
end;
var
VarCopyProc: procedure (var Dest: TVarData; const Source: TVarData) = _VarCopyProc;
{.$ENDIF USESYNTABLEVARIANT}
{+.} // end changes.
procedure RecordCopy(var Dest; const Source; TypeInfo: pointer);
...
Offline
Are you using the latest unstable 1.18 revision?
See http://synopse.info/files/mORMotNightlyBuild.zip
Did you try with the USEPACKAGES conditional defined for your project, as clearly stated by the doc?
Offline
Nightly - Yes
USEPACKAGES - Thanks - this solved the problem
Offline