Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 321
  • Last Modified:

error seacrhing for pas file

I installed  a new  component but Delphi 7 gives an error while compiling.
It tries to search for the pas file of the component but I only have a dcu file.
How can I solve this ??
0
data-nova
Asked:
data-nova
  • 3
  • 2
1 Solution
 
TNameCommented:
Is the directory containing the .dcu in the library path?
Tools > Environment Options > Library > Library Path
If not, try to add it.
0
 
data-novaAuthor Commented:

 yes this path is already in the library path
0
 
TNameCommented:
Could it be that it's a dcu for another Delphi version? If it wasn't compiled with D7's compiler, it won't be of much use for you. You'd need the pas file.
0
 
TNameCommented:
The dcu has to match the exact Delphi version, even if the original pas file would work perfectly with D7. The compiler will recognize it's a different version and will not accept it.
If the path is correct, then I guess this is the problem. Try to obtain a D7 version of the compiled unit if possible.
(the pas is of course always the ideal choice).
0
 
data-novaAuthor Commented:

 Thank you :)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now