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

fredvs fiens at hotmail.com
Tue Feb 14 05:00:09 CET 2017


> Even my name is written wrong.

Sorry Mattias, really.

I should use a other way to dialog, I agree it was not fun.

And I will not use directive inside code (even if it is very wow).

For close the d├ębat, the "$UNITPATH" way works only if you add this on the
used units:

for example in the program:

program myprogram; 
{$UNITPATH ../../src}
uses
unita;

and in the unit:

unit unita;
{$UNITPATH ./} // this add
uses
unita2;

Fre;D




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



More information about the fpc-pascal mailing list