Sign in Join

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

Mailing lists / lazarus / 2008-05

Lazarus can't find a unit

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Antonio Sanguigni

Hi guys,

I have a weird problem. I'm writing an application under windows and Linux. In windows it compiles without any problem but under Linux the same project gives me this error:

multifpt.lpr(12,31) Fatal: Can't find unit tiAutomap used by tiCriteria

I'm using the very good chance to add lazarus packages to my project and tiOPF is one of them. I checked this package and the unit tiAutomap is there, such as under windows, so I cannot understand where is my fault. This is my uses clause:
--------------------------
uses

  {$IFDEF UNIX}{$IFDEF UseCThreads}
  cthreads,
  {$ENDIF}{$ENDIF}
  Classes
  { you can add units after this }, tiOIDGUID, model, //fpgui_package,
  synapse_pck, multiftpbase, multiftpsynapse, model_filetoftp, SysUtils,

xml_db,

  tiOPFManager, tiOID, tiQuery, tiConstants, tiAutomap;

--------------------------

What can I further check to let it compiling fine ?

Thanks
Antonio

Antonio Sanguigni alias slapshot ---------------------------------------------------------------------- GioveLUG (Linux User Group) - http://www.giovelug.org Edupup (Educational distro) - http://edupup.pieroni.biz -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080508/d222b93d/attachment.html

Reply by email

Graeme Geldenhuys
to Antonio Sanguigni

2008/5/8 Antonio Sanguigni :

Show quoted text 6 lines
I have a weird problem. I'm writing an application under windows and Linux. In windows it compiles without any problem but under Linux the same project gives me this error: multifpt.lpr(12,31) Fatal: Can't find unit tiAutomap used by tiCriteria

Remember that Linux and any other unix OS is case-sensitive. Under Linux, what is the physical name of the file in the src/core directory? The filename I think should be 'tiAutoMap.pas' and the unit name in that pas file should be the same 'unit tiAutoMap;'

I'll be able to double check this for you tomorrow, when I'm back at work.

tiOPFManager, tiOID, tiQuery, tiConstants, tiAutomap;

I think that's your problem. You wrote 'tiAutomap' and I think it should be 'tiAutoMap' instead.

Lazarus IDE tries to combat this issue by recommending to lowercase the filename when it's saved the first time. tiOPF project doesn't use all lowercase filenames.

Regards,
- Graeme -

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

Reply by email

Antonio Sanguigni
to Graeme Geldenhuys
Show quoted text 11 lines
> tiOPFManager, tiOID, tiQuery, tiConstants, tiAutomap; I think that's your problem. You wrote 'tiAutomap' and I think it should be 'tiAutoMap' instead. Lazarus IDE tries to combat this issue by recommending to lowercase the filename when it's saved the first time. tiOPF project doesn't use all lowercase filenames.

Lesson learned, Graeme :-).

Thanks
Antonio

Antonio Sanguigni alias slapshot ---------------------------------------------------------------------- GioveLUG (Linux User Group) - http://www.giovelug.org Edupup (Educational distro) - http://edupup.pieroni.biz -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080509/1d4f0649/attachment.html

Reply by email