[Lazarus] Lazarus svn fails to compile
Luca Olivetti
luca at wetron.es
Mon Jun 9 09:56:59 CEST 2008
Michael Van Canneyt escribió:
>
> On Mon, 9 Jun 2008, Graeme Geldenhuys wrote:
>
>> On 09/06/2008, Graeme Geldenhuys <graemeg.lists at gmail.com> wrote:
>>> environmentopts.pp(1527,57) Error: Identifier not found "GetUserDir"
>>> environmentopts.pp(2701) Fatal: There were 1 errors compiling module, stopping
>> Looking at that unit, the error occurs inside the InitMacros() method
>>
>> {$IFNDEF Ver2_2_0}
>> AMacroList.Add(TTransferMacro.Create('Home',GetUserDir,
>> lisUserSHomeDirectory, nil, []));
>> {$ENDIF}
>>
>>
>> I'm not sure if this code is for < FPC 2.2.0 or > FPC 2.2.0
>
> The code is for FPC > 2.2.0
Speaking of which, I find kinda strange that under windows
GetAppConfigDir(true) returns the "All users\Application data"
directory, while GetAppConfigDir(false) get the logged in user "Local
settings" directory instead of the logged in user "Application data".
I think the latter should use CSIDL_APPDATA instead of CSIDL_LOCAL_APPDATA.
Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004 Fax +34 93 5883007
More information about the Lazarus
mailing list