Recent

Author Topic: DCPChipers Units problem  (Read 3683 times)

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
DCPChipers Units problem
« on: April 08, 2011, 08:19:19 am »
How do I use the following two units in a console application?

DCPrc4, DCPsha1

Why work in a normal application, however the console application I get the following error:

Hint: Start of reading config file c:\lazarus\fpc\2.4.2\bin\i386-win32\fpc.cfg
Hint: End of reading config file c:\lazarus\fpc\2.4.2\bin\i386-win32\fpc.cfg
Free Pascal Compiler version 2.4.2 [2011/01/10] for i386
Copyright (c) 1993-2010 by Florian Klaempfl
Target OS: Win32 for i386
Compiling project1.lpr
project1.lpr(1,1) Fatal: Can't find unit DCPrc4 used by project1

« Last Edit: April 08, 2011, 09:21:00 am by xinyiman »
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12984
  • FPC developer.
Re: DCPChipers Units problem
« Reply #1 on: April 08, 2011, 11:06:52 am »
Apparantly the searchpack for those units was not added to the console app.

This because

1: the path was manually added to the GUI app.
2: the GUI project has a dependancy on a componentset that has the relevant units, and console not.
      Since GUI projects include LCL by default, if you copied the units into the LCL dir, this could be it.
 

So where are those units?

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
Re: DCPChipers Units problem
« Reply #2 on: April 08, 2011, 11:14:49 am »
C:\lazarus\components\dcpcrypt-2.0.4.1
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

 

TinyPortal © 2005-2018