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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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
into the .dpr file’s uses clause. The path is relative to the directory containing the .dpr file.
Then you can write
in your .pas files.