Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-06

Lazarus svn fails to compile

6 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

I just got an svn update. Did a clean all and build and got the following error. Revision: 15369
I'm using FPC 2.2.1 for x86.

------------------------------
"LCL" completed
"SynEdit" completed
"CodeTools" completed
"Package Registration" completed
"IDE Interface" completed
"JIT Form" completed
environmentopts.pp(1527,57) Error: Identifier not found "GetUserDir" environmentopts.pp(2701) Fatal: There were 1 errors compiling module, stopping ------------------------------

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Graeme Geldenhuys
to Graeme Geldenhuys
Graeme Geldenhuys 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

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Michael Van Canneyt
to Graeme Geldenhuys
Graeme Geldenhuys wrote 13 lines
On 09/06/2008, Graeme Geldenhuys 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

You'll need to update FPC.

Michael.

Reply by email

Graeme Geldenhuys
to Graeme Geldenhuys: Looking at that unit, the error occurs inside the InitMacros() method {$IFNDEF Ver2_2_0}…
Graeme Geldenhuys wrote 12 lines
On 09/06/2008, Graeme Geldenhuys 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 commented those lines so I could continue. Then later I got an error in the the following packages: fpcunitide.lpk, dbflaz.lpk and sqldblaz.lpk

A error window pops up saying it couldn't create the Makefile for each package. I had to open each of those packages and uncheck the "Create Makefile" in the Compiler Options.
I had a look, and I do have the fpcmake and fpcmkcfg in my FPC bin directory. FPC bin is in my systems PATH as well.

I've never had this error before, and have been compiling Lazarus myself for the last two years now.

Again, using FPC 2.2.1 on Ubuntu 7.10 (32bit).

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Graeme Geldenhuys
to Michael Van Canneyt: The code is for FPC > 2.2.0 You'll need to update FPC. Michael.
Michael Van Canneyt wrote 6 lines
> > 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 You'll need to update FPC.

:-) And as I got your email, I also got a Mantis bug status report telling me the same thing! It's all about timing. ;-)

http://bugs.freepascal.org/view.php?id=11449

Thanks Michael, busy compiling a new FPC 2.2.1 now.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Luca Olivetti
to Michael Van Canneyt: The code is for FPC > 2.2.0 You'll need to update FPC. Michael.

Michael Van Canneyt escribi?:

Show quoted text 17 lines
On Mon, 9 Jun 2008, Graeme Geldenhuys wrote: > On 09/06/2008, Graeme Geldenhuys 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

Reply by email