<p>Am 10.02.2016 14:09 schrieb "Juha Manninen" <<a href="mailto:juha.manninen62@gmail.com">juha.manninen62@gmail.com</a>>:<br>
><br>
> On Wed, Feb 10, 2016 at 2:01 AM, Vojtěch Čihák <<a href="mailto:vojtech.cihak@atlas.cz">vojtech.cihak@atlas.cz</a>> wrote:<br>
> > There exists IDE directive<br>
> ><br>
> > {%MainUnit ***.pas}<br>
> ><br>
> > and include files should contain it.<br>
><br>
> Yes, that is the solution for Anthony's problem. Most include files<br>
> used by LCL units have it but FPC libraries may not.<br>
> When the directive is set, Lazarus IDE always knows how to jump<br>
> between interface in Pascal unit and implementation in an include<br>
> file.<br>
> The {%...} directive is a comment in other contexts and can be used safely.</p>
<p>What about include files included by other include files?</p>
<p>> > But I don't know if there are more units containing the same include file.<br>
><br>
> When a big Pascal unit is split into include files then an include<br>
> file is referred from one place only.<br>
> The directive is not meant for generic include files.<br>
><br>
> The original question about dynlibs remains. I understood with FPC 3.0<br>
> it is not needed but I could not compile without it.<br>
> This has nothing to do with cross-platform code. I am testing with<br>
> Xubuntu + GTK2 as the code is part of LCL-GTK2.<br>
> Actually I still have the RC1 version here:<br>
>  $ fpc<br>
>  Free Pascal Compiler version 3.0.0rc1 [2015/08/07] for x86_64<br>
>  ...<br>
> Could there be such a difference between RC1 and the release?<br>
> Anyway, I added dynlibs there. It is needed at least by FPC 2.6.4<br>
> which we still support for some time.<br>
> Ubuntu people, please test the Unity TTrayIcon feature. I have only<br>
> tested it does not break LCL-GTK2 in other systems. I will install<br>
> Ubuntu + Unity soon.</p>
<p>I must check whether I had done that change before or after the branch...<br>
On non-Windows systems you'll need to include dynlibs at least in the main project anyway as it is needed to initialize the library manager (just like cthreads and cwstring).</p>
<p>Regards,<br>
Sven</p>