<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hello Tim.</p>
<p><br>
</p>
<p>OK, many thanks for your light.</p>
<p><br>
</p>
<p>Fre;D</p>
<p><br>
</p>
<div style="color: rgb(0, 0, 0);">
<div>
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>De :</b> fpc-pascal-bounces@lists.freepascal.org <fpc-pascal-bounces@lists.freepascal.org> de la part de Tim Veldhuizen <tim@timveldhuizen.nl><br>
<b>Envoyé :</b> samedi 11 février 2017 06:04<br>
<b>À :</b> fpc-pascal@lists.freepascal.org<br>
<b>Objet :</b> Re: [fpc-pascal] uses myunit in '../src/myunit.pas' ?</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Unit names are considered to be unique, so strictly, for the compiler
<br>
there is no need to specify the path explicitly in code when the unit <br>
path is given to the compiler when calling it from the command line.<br>
<br>
To do this, use the -Fu parameter when calling fpc to include ../src to <br>
the unit path.<br>
<br>
Greetings,<br>
Tim Veldhuizen.<br>
<br>
On 11/02/17 04:07, fredvs wrote:<br>
> Hello.<br>
><br>
> There is myprogram.pas in /home/me/myproject/example.<br>
><br>
> This program uses myunit.pas from /home/me/myproject/src.<br>
><br>
> myunit.pas uses myunit2.pas and myunit3.pas that are also in<br>
> home/me/myproject/src.<br>
><br>
> Using this:<br>
><br>
> program myprogram;<br>
> ...<br>
> uses myunit in '../src/myunit.pas';<br>
><br>
> load indeed /home/me/myproject/src/myunit.pas but there are error messages<br>
> because myunit.pas does not find the units that are in uses section.<br>
><br>
> Here myunit.pas:<br>
><br>
> unit myunit;<br>
> ...<br>
> uses myunit2, myunit3;<br>
> ...<br>
><br>
> How to do ?<br>
><br>
> Thanks.<br>
><br>
> Fre;D<br>
><br>
><br>
><br>
><br>
> -----<br>
> Many thanks ;-)<br>
> --<br>
> View this message in context: <a href="http://free-pascal-general.1045716.n5.nabble.com/uses-myunit-in-src-myunit-pas-tp5727626.html" id="LPlnk77934" previewremoved="true">
http://free-pascal-general.1045716.n5.nabble.com/uses-myunit-in-src-myunit-pas-tp5727626.html</a>
<div id="LPBorder_GT_14868177476180.5080052928026386" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_14868177476120.9390961035545962" cellspacing="0" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="TextCell_14868177476130.07517726715215156" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div id="LPRemovePreviewContainer_14868177476130.36976000657334174"></div>
<div id="LPTitle_14868177476130.13487880042452138" style="top: 0px; color: rgb(0, 114, 57); font-weight: normal; font-size: 21px; font-family: wf_segoe-ui_light, "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_14868177476140.33436459833523213" href="http://free-pascal-general.1045716.n5.nabble.com/uses-myunit-in-src-myunit-pas-tp5727626.html" target="_blank" style="text-decoration: none;">Free Pascal - General - uses myunit in '../src/myunit.pas'
?</a></div>
<div id="LPMetadata_14868177476150.21822573581553706" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
free-pascal-general.1045716.n5.nabble.com</div>
<div id="LPDescription_14868177476160.8348039349278493" style="display: block; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
uses myunit in '../src/myunit.pas' ?. Hello. 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...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
> Sent from the Free Pascal - General mailing list archive at Nabble.com.<br>
> _______________________________________________<br>
> fpc-pascal maillist - fpc-pascal@lists.freepascal.org<br>
> <a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" id="LPlnk385993" previewremoved="true">
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a>
<div id="LPBorder_GT_14868177471110.7886726091881682" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_14868177471010.6114486658418645" cellspacing="0" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="TextCell_14868177471040.06508118767302551" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div id="LPRemovePreviewContainer_14868177471050.4357878142032561"></div>
<div id="LPTitle_14868177471050.6841063850497007" style="top: 0px; color: rgb(0, 114, 57); font-weight: normal; font-size: 21px; font-family: wf_segoe-ui_light, "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_14868177471060.13064722481305435" href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" target="_blank" style="text-decoration: none;">fpc-pascal Info Page</a></div>
<div id="LPMetadata_14868177471070.6067276080569881" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
lists.freepascal.org</div>
<div id="LPDescription_14868177471090.7460674959241087" style="display: block; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
NOTE ***** Due to incidents with spambots subscribing to the list and spamming it, your first message(s) may be delayed a bit before ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
<br>
_______________________________________________<br>
fpc-pascal maillist - fpc-pascal@lists.freepascal.org<br>
<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" id="LPlnk86322">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a>
<div id="LPBorder_GT_14868177471880.5106701605722506" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_14868177471810.6020485847847883" cellspacing="0" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="TextCell_14868177471830.9674753328478145" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div id="LPRemovePreviewContainer_14868177471830.9517540451957969"></div>
<div id="LPTitle_14868177471830.46578174409952067" style="top: 0px; color: rgb(0, 114, 57); font-weight: normal; font-size: 21px; font-family: wf_segoe-ui_light, "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_14868177471850.17229057988279384" href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" target="_blank" style="text-decoration: none;">fpc-pascal Info Page</a></div>
<div id="LPMetadata_14868177471850.2566261811118804" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
lists.freepascal.org</div>
<div id="LPDescription_14868177471870.4771046216748436" style="display: block; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
NOTE ***** Due to incidents with spambots subscribing to the list and spamming it, your first message(s) may be delayed a bit before ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>