[fpc-pascal] uses myunit in '../src/myunit.pas' ?
fredvs
fiens at hotmail.com
Mon Feb 13 22:31:46 CET 2017
> unita2 can be anywhere.
No, if the compiler assign the directory search path, like I explained in
earlier post:
-------------
...
if fpcword = 'in' then begin
...
IncludeDirectorySearchPath(ExtractFilePath('/thepath/src/myunit.pas')); //
This could be added
IncludeUnit('/thepath/src/myunit.pas'); // That what compiler already does
...
--------------------------
unita2 could be only in ExtractFilePath('/thepath/src/myunit.pas').
>uses
> unita2 in 'Documents/unita2.pp',
> unita in 'Documents/unita.pp';
> Should (and does) work.
Ha, good news, I will explore that way.
____________________
> I guess you are searching for {$unitpath Documents}
Oops, what's that?
I already like it, without to try it.
Many thanks for that tip, I will try it now.
Write you later.
Fre;D
uses
> unita in 'Documents/unita.pp';
-----
Many thanks ;-)
--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/uses-myunit-in-src-myunit-pas-tp5727626p5727653.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
More information about the fpc-pascal
mailing list