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

fredvs fiens at hotmail.com
Fri Feb 10 21:07:12 CET 2017


There is myprogram.pas in /home/me/myproject/example.

This program uses myunit.pas from /home/me/myproject/src.

myunit.pas uses myunit2.pas and myunit3.pas that are also in

Using this:

program myprogram;
uses myunit in '../src/myunit.pas';

load indeed /home/me/myproject/src/myunit.pas but there are error messages
because myunit.pas does not find the units that are in uses section.

Here myunit.pas:

unit myunit;
uses myunit2, myunit3;

How to do ?



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

More information about the fpc-pascal mailing list