| View previous topic :: View next topic |
| Author |
Message |
Jan Norden [ECO group] Guest
|
Posted: Fri Apr 13, 2007 7:47 pm Post subject: FastMM and D2007 |
|
|
Haven't done win32 for a long time.
I am porting a project from D7 to D2007, and get the following message:
[DCC Error] E2201 Need imported data reference ($G) to access
'IsMultiThread' from unit 'FastMM4'
I have no idea what it means. $G looks like a compiler directives .
Unfortunately the help on compiler directives
(ms-help://borland.bds5/devcommon/delphicompdirectiveslist_xml.html) is
empty.
Googling shows that it may be equivalent to $IMPORTEDDATA, but I have
no idea where to set this from the IDE. I guess it should be under the
linker options, since it seems to happen after all compilation is done,
but I can see nothing fitting there either.
And I have other projects using FastMM4 that compile just fine.
-- |
|
| Back to top |
|
 |
Hallvard Vassbotn Guest
|
Posted: Tue Apr 17, 2007 6:33 pm Post subject: Re: FastMM and D2007 |
|
|
Hi Jan,
"Jan Norden [ECO group]" wrote:
| Quote: | Haven't done win32 for a long time.
|
Welcome back! ;)
| Quote: | $G looks like a compiler directives .
Unfortunately the help on compiler directives
(ms-help://borland.bds5/devcommon/delphicompdirectiveslist_xml.html) is
empty.
Googling shows that it may be equivalent to $IMPORTEDDATA, but I have
no idea where to set this from the IDE. I guess it should be under the
linker options, since it seems to happen after all compilation is done,
but I can see nothing fitting there either.
|
You cannot set it from the IDE (yet). $G / $IMPORTEDDATA is documented here:
http://hallvards.blogspot.com/2006/09/hack13-access-globals-faster.html
| Quote: | I am porting a project from D7 to D2007, and get the following message:
[DCC Error] E2201 Need imported data reference ($G) to access
'IsMultiThread' from unit 'FastMM4'
I have no idea what it means.
And I have other projects using FastMM4 that compile just fine.
|
FastMM does not contain any $G or $IMPORTEDDATA settings. It sounds like the
FastMM4 unit was compiled with $G or $IMPORTEDDATA disabled. This can be due
to a setting in the .dproj file, for instance.
Are you are trying to compile and link FastMM4 into a package? |
|
| Back to top |
|
 |
Dennis Passmore Guest
|
Posted: Wed Apr 18, 2007 3:06 am Post subject: Re: FastMM and D2007 |
|
|
Have you tried just editting FastMM4Options.inc and changing
{.$define AssumeMultiThreaded} by removing the period. |
|
| Back to top |
|
 |
Jan Norden [ECO group] Guest
|
Posted: Wed Apr 18, 2007 7:14 pm Post subject: Re: FastMM and D2007 |
|
|
Dennis Passmore wrote:
| Quote: | Have you tried just editting FastMM4Options.inc and changing
{.$define AssumeMultiThreaded} by removing the period.
|
Thanks, just found that in the FAQ, (Should have read that first).
-- |
|
| Back to top |
|
 |
Jan Norden [ECO group] Guest
|
Posted: Wed Apr 18, 2007 7:25 pm Post subject: Re: FastMM and D2007 |
|
|
Jan Norden [ECO group] wrote:
| Quote: | Dennis Passmore wrote:
Have you tried just editting FastMM4Options.inc and changing
{.$define AssumeMultiThreaded} by removing the period.
Thanks, just found that in the FAQ, (Should have read that first).
|
Except it wasn't that, it was UseRuntimePackages, though
AssumeMultiThreaded should help as well.
-- |
|
| Back to top |
|
 |
|