[Lazarus] [Lazarus 0012254]: Code tools bug: with Code completition

Henry Vermaak henry.vermaak at gmail.com
Fri Oct 3 18:14:58 CEST 2008


On 03/10/2008, Mattias Gaertner <nc-gaertnma at netcologne.de> wrote:
>> the unit dir as /path/to/compiledunits/$(TargetCPU)-$(TargetOS),
>
> The macros are normal. But this looks like an absolute path. Maybe you
> meant compiledunits/$(TargetCPU)-$(TargetOS), relative to your package?

it is absolute, but it's the right dir (and the compilation works, for
both archs).

>> and i
>> specify the path to all the source so the ide can find it for
>> completion, etc.
>
> What do you mean with specify?

i add all source paths to the "Other Sources (used only by IDE not compiler)".

> In lazarus you use packages to specify paths. You hardly write paths
> yourself in the edit/combo boxes of the IDE.

the package in question (fpgui) doesn't play well when i cross
compile.  it compiles the whole package every time i switch compiler
(i386 to arm), which is annoying.  doing it this way it will find the
compiled fpgui units for whichever arch, and just compile my project.
this works well, so no problems there.

>
> You can see the search paths via source editor / popup menu / file
> settings / unit info. The 'unit path' is given to the compiler, the
> 'source path' is an addition for the IDE. Both are normally defined by
> the compiler options.

i've had a look at this "unit info" and all the paths are there and correct.

as i've said, it does find some of the units i ctrl-click on.  but it
seems random and i _think_ it only finds source in the same directory
as the file i'm clicking on.

henry



More information about the Lazarus mailing list