On Mon, 28 Mar 2011 10:21:13 +0100 Frank Church <[email protected]> wrote:
> On 27 March 2011 18:37, Mattias Gaertner <[email protected]> wrote: > > > On Sun, 27 Mar 2011 18:18:43 +0100 > > Frank Church <[email protected]> wrote: > > > > >[...] > > > > > I also tried to install Indy and the same error comes up. > > > > Do you know about the include file clashes of Indy? > > This creates such errors. > > > > > The problem appeared before I added Indy to the system. > > > > > > componenttreeview.ppu is present in the units\i386 directory > > > > Compile with -vut to find out which include file conflicts and rename > > it. > > > > > I guess that would be ticking -vu and -vt in the Verbosity options > Can the -vut be set for Environment itself? Yes, in your fpc.cfg, but then you get a lot of output, so only activate this when you have such a problem. > The problem appears to lie in the package itself, it appears to be in the > environment. > > In my last problem involving Indy, > http://lists.lazarus.freepascal.org/pipermail/lazarus/2011-March/061679.html, > I had to check the files in the -pcp directory and remove all references to > directories outside the Lazarus installation. I had quite a few and the > directories had gotten mixed up. It appears that when I copied projects from > the old installations to the new ones, the directories linked with projects > got copied to the -pcp folders in the new installation and caused the > problems with Indy and some other packages. This appears to happen even if > you just open project related to the old installations. I can't follow you here. What do you mean with directories got copied? The IDE does not copy directories. But when you set wrong paths the compiler will create duplicate ppu files. > I suspect that if you are not careful about how you set the search options > in packages or projects, some of their directories will get copied to your > main installations settings, even though the come from a different component > tree. Well, yes, you can do havoc with search paths. The wiki lists more than 20 ways how to mess up your system leading to the "unit not found" error. I already added some tools for some cases and I plan an expert system to find misconfigurations in search paths. > I have searched the -pcp folder for directories related to the pre-existing > installations but haven't found any. > > I will try your suggestion to see. Mattias -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
