Sign in Join

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

Mailing lists / lazarus / 2008-10

Units missing

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Dave Coventry

Hi,

I upgraded last night to the
Lazarus-0.9.27-17155-fpc-2.2.2-20081030-win32.exe nightly build.

My application won't compile with the following error:

C:\Programs\lazarus\components\printers\printersdlgs.pp(27,22) Fatal:
Can't find unit Dialogs used by PrintersDlgs

When I try to configure packages and rebuild the IDE, it stops with the followng error:

C:\Programs\lazarus\components\tachart\taseries.pas(37,8) Fatal: Can't
find unit Graphics used by TASeries

So, obviously the units are not where the IDE expects them to be.

I have 3 'graphics.pas' files:

c:\Programs\lazarus\fpc\2.2.1\source\rtl\morphos\graphics.pas c:\Programs\lazarus\fpc\2.2.2\source\rtl\morphos\graphics.pas c:\Programs\lazarus\fpc\2.2.3\source\rtl\morphos\graphics.pas

Ialso have multiple instances of dialogs.pas

Reply by email

Mattias Gaertner
to Dave Coventry
[...] I upgraded last night to the Lazarus-0.9.27-17155-fpc-2.2.2-20081030-win32.exe nightly build.

Then you must rebuild clean all your depending projects and packages. The compiler should figure that out automatically, but in some cases it does not.

My application won't compile with the following error: C:\Programs\lazarus\components\printers\printersdlgs.pp(27,22) Fatal: Can't find unit Dialogs used by PrintersDlgs

What says the project / compiler options / test?

Show quoted text 15 lines
When I try to configure packages and rebuild the IDE, it stops with the followng error: C:\Programs\lazarus\components\tachart\taseries.pas(37,8) Fatal: Can't find unit Graphics used by TASeries So, obviously the units are not where the IDE expects them to be. I have 3 'graphics.pas' files: c:\Programs\lazarus\fpc\2.2.1\source\rtl\morphos\graphics.pas c:\Programs\lazarus\fpc\2.2.2\source\rtl\morphos\graphics.pas c:\Programs\lazarus\fpc\2.2.3\source\rtl\morphos\graphics.pas Ialso have multiple instances of dialogs.pas

It does not search graphics.pas but graphics.ppu.

Mattias

Reply by email

Dave Coventry
to Mattias Gaertner

Hi Mathias,

I 'cd'ed to c:\Programs\lazarus and ran fpc\2.2.3\bin\i386-win32\make.exe

Which solved the problem.

With regards to the 'graphics.pas' files, I was drawing attention to the fact that I have multiple instances of fpc (2.2.1, 2.2.2, 2.2.3), which might have been confusing the compiler.

Reply by email

Mattias Gaertner
to Dave Coventry
Show quoted text 6 lines
Hi Mathias, I 'cd'ed to c:\Programs\lazarus and ran fpc\2.2.3\bin\i386-win32\make.exe Which solved the problem.

ok, so you had some outdated ppu files.

With regards to the 'graphics.pas' files, I was drawing attention to the fact that I have multiple instances of fpc (2.2.1, 2.2.2, 2.2.3), which might have been confusing the compiler.

Most fpc devels and lazarus devels use multiple fpc versions. You just have to make sure, you don't mix them up.

Mattias

Reply by email