[fpc-pascal] Free Pascal Directories

silvioprog silvioprog at gmail.com
Thu Oct 2 23:23:12 CEST 2014


On Thu, Oct 2, 2014 at 6:13 PM, Jonas Maebe <jonas.maebe at elis.ugent.be>
wrote:

> On 02/10/14 22:52, Brian wrote:
>
>> Conclusion :
>>
>> Using {$UNITPATH/home/some/*} in the main program DOES NOT WORK !
>>
>
> It behaves exactly as documented at http://www.freepascal.org/
> docs-html/prog/progsu121.html :
>
> "Note that this switch does not propagate to other units, i.e. it’s scope
> is limited to the current unit."
>
> "unit" should be interpreted as "compilation unit" in this context.
>
> Jonas


Correct. But it does not work fine if the path contains two or more units.
E.g:

{$unitpath path\to\the\all\units\of\the\synapse40\source\lib}

"..\..\3rdparty\synapse40\source\lib\httpsend.pas(72,3) Fatal: Can't find
unit blcksock used by httpsend."

I tried too {$unitpath path\to\the\all\units\of\the\synapse40\source\lib\*}:

"Can not find unit httpsend used by myunit."

=(

-- 
Silvio Clécio
My public projects - github.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20141002/07f5d7e9/attachment.html>


More information about the fpc-pascal mailing list