d-mozulyov / BrainMM

Extremely fast memory manager for Delphi
http://www.sql.ru/forum/1213139/ekstremalno-bystryy-menedzher-pamyati-brainmm
MIT License
96 stars 16 forks source link

Compiling problems: E2201 error #7

Closed Gronfi closed 7 years ago

Gronfi commented 7 years ago

Hi! I'm creating a package that merely contains the brainmm.pas unit. When I compile it, next error appears: E2201 need imported data reference ($G) to access 'ReportMemoryLeaksOnShutdown' from unit 'BRainMM'. I have tried with that directive, also with the '{$IMPORTEDDATA ON}' after reading in the web some similar errors, but can't make it compile... :( If I use the brainmm in a normal proyect (no packages), no problem. But when you use packages in any way, the problem appears and don't know how to solve it Any idea what is happening?

d-mozulyov commented 7 years ago

Hi :)

If I use the brainmm in a normal proyect (no packages), no problem.

Unfortunately, the BrainMM is not stable yet, that is why I do not recommend the library for commercial use. The development will be continued this winter.

Any idea what is happening?

Try to define "MANAGERFLAGSEMULATE" flag in your package. It is not quite correct, but hope will solve your problem

Gronfi commented 7 years ago

Hi again! Thanks, this way the packages compile :) And of course, thanks for your work