Reputation: 11768
I have a simple problem i have some units in the main folder and my project is located in a sub folder and i want to use the units from the main folder. I used this :
uses
ACMIN in '..\ACMIN.pas'
I get the error : File not found ACMIN.dcu.
Upvotes: 1
Views: 2304
Reputation: 612983
The code you post is from a .pas file rather than a .dpr file. So far as I am aware that should be a syntax error so I'm a little confused.
As for how to do it right, I would move
ACMIN in '..\ACMIN.pas'
into the .dpr file's uses clause. The path is relative to the directory containing the .dpr file.
Then you can write
uses
ACMIN;
in your .pas files.
Upvotes: 7
Reputation: 1617
Add the path of the main file to the Project library
Tools->Environment Options->Library->Library paths
and you can use
uses
ACMIN
Upvotes: 0