[fpc-pascal] uses myunit in '../src/myunit.pas' ?

fredvs fiens at hotmail.com
Mon Feb 13 17:34:09 CET 2017


> The compiler already does this. 
Yes, that I know, for one unit, but try this:

----------------------------------- 
cadwal: >cat p.pp 
program p; 

uses unita in 'Documents/unita.pp'; 

begin 
end. 

cadwal: >cat Documents/unita.pp 
unit unita; 

uses unita2;

interface 

implementation 

end. 

cadwal: >cat Documents/unita2.pp 
unit unita2; 

interface 

implementation 

end. 

cadwal: >fpc p.pp 
cadwal: > 

Fre;D



-----
Many thanks ;-)
--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/uses-myunit-in-src-myunit-pas-tp5727626p5727650.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.



More information about the fpc-pascal mailing list