#1 2024-03-19 23:47:59

yslmyr1990
Member
Registered: 2024-02-02
Posts: 11

[DCC Error] E2201 Need imported data reference ($G)

Hi ab,
   After i pull code from the newest, i got a dcc error, even i reset the code, the error was still there, i don`t know why.
  [DCC Error] E2201 Need imported data reference ($G) to access 'crcblock' from unit 'mormot.crypt.core'

Offline

#2 2024-03-20 08:21:48

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,667
Website

Re: [DCC Error] E2201 Need imported data reference ($G)

Which compiler do you use?
With which language?

Does your project involve packages?

Offline

#3 2024-03-20 09:18:32

yslmyr1990
Member
Registered: 2024-02-02
Posts: 11

Re: [DCC Error] E2201 Need imported data reference ($G)

i use delphi 2010, and the project is a dll, build with the runtime packages

Offline

#4 2024-03-20 12:50:49

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,667
Website

Re: [DCC Error] E2201 Need imported data reference ($G)

Did you define the USEPACKAGES conditional for the project and the packages?

Offline

#5 2024-03-20 12:56:57

yslmyr1990
Member
Registered: 2024-02-02
Posts: 11

Re: [DCC Error] E2201 Need imported data reference ($G)

ab wrote:

Which compiler do you use?
With which language?

Does your project involve packages?

I think i know why,this dll requires a pulic package, and in the public package use Unit mormot.core.log.pas, do i need to build a mormot.bpl for every package? Or something to avoiding this problem?

Offline

#6 2024-03-20 13:33:11

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,667
Website

Re: [DCC Error] E2201 Need imported data reference ($G)

Did it previously work?
I don't remember having changed anything about crcblock().

Did you try with another/newer version of Delphi?

Did you search in the forum?
Did you try https://synopse.info/forum/viewtopic.ph … 802#p23802 ?

Or just try to not use packages.

Offline

#7 2024-03-20 14:32:40

yslmyr1990
Member
Registered: 2024-02-02
Posts: 11

Re: [DCC Error] E2201 Need imported data reference ($G)

ab wrote:

Did it previously work?
I don't remember having changed anything about crcblock().

Did you try with another/newer version of Delphi?

Did you search in the forum?
Did you try https://synopse.info/forum/viewtopic.ph … 802#p23802 ?

Or just try to not use packages.

Hi ab,
   I have try all above include {$define USEPACKAGES} , Change this setting to Generate DCUs only, and so on, but it`s seem like just not work on delphi 2010, the other version(i try delphi 12) is OK.
   Project1.dll build with runtime package Package1.bpl, and both them use The unit mormot.core.log.pas.
   i`m build a mOrmot.bpl public package to resolve my problem, thanks for your ansower.

Last edited by yslmyr1990 (2024-03-20 14:34:06)

Offline

Board footer

Powered by FluxBB