[fpc-pascal] Path, Search Path and Source Path
Mattias Gaertner
nc-gaertnma at netcologne.de
Mon Dec 5 09:52:50 CET 2005
On Mon, 05 Dec 2005 01:12:57 +0200
listmember <listmember at letterboxes.org> wrote:
> dhkblaszyk at zeelandnet.nl wrote:
>
> > Please switch for Lazarus specific questions to the lazarus mailinglist.
>
> I'm sorry. But, I am not sure it is a Lazarus issue. Please see below.
>
> > About your question, check Environment | Environment options. The tab
> > files contains all paths to your FPC directory.
>
> Making sure they are correct didn't help.
>
> It turns out that Lazarus wan't in the equation in the first place.
>
> When I added the paths (that were rported to be missing, in the fpc.cfg
> the whole thing started working.
>
> Except that, now when I compile a new project, almost everything gets
> re-compiled. I know it is somethhing to do ith the paths I have added
> to fpc.cfg, but I have no idea which ones I should remove.
>
> Here's the relevant part of modified fpc.cfg. Can someone help?
>
> # searchpath for includefiles
> # release them only if you know what you do
> # because this could cause a rebuild of the runtime library
> # if you tell them compiler/ide to build the project (FK)
> #-FiC:\FreePascal-2.1.1/source/rtl/inc;C:\FreePascal-2.1.1/source/rtl/i386
> -FiC:\FreePascal-2.1.1\lazarus\lcl
> -FiC:\FreePascal-2.1.1\lazarus\lcl\include
> -FiC:\FreePascal-2.1.1/lazarus/lcl/interfaces/win32
> -FiC:\FreePascal-2.1.1\lazarus\lcl\widgetset\
>
> # searchpath for objectfiles
> #-FoC:\FreePascal-2.1.1/source/rtl/inc;C:\FreePascal-2.1.1/source/rtl/i386
> -FoC:\FreePascal-2.1.1\lazarus\lcl
> -FoC:\FreePascal-2.1.1\lazarus\lcl\include
> -FoC:\FreePascal-2.1.1/lazarus/lcl/interfaces/win32
> -FoC:\FreePascal-2.1.1\lazarus\lcl\widgetset\
>
> # searchpath for units and other system dependent things
> -FuC:\FreePascal-2.1.1/units/$FPCTARGET/
> -FuC:\FreePascal-2.1.1/units/$FPCTARGET/*
> -FuC:\FreePascal-2.1.1/units/$FPCTARGET/rtl
> -FuC:\FreePascal-2.1.1\lazarus\lcl
> -FuC:\FreePascal-2.1.1\lazarus\lcl\include
> -FuC:\FreePascal-2.1.1/lazarus/lcl/interfaces/win32
> -FuC:\FreePascal-2.1.1\lazarus\lcl\widgetset\
Remove all lazarus paths. Keep only the three $FPCTARGET paths.
If you want to compile without the Lazarus IDE, you can add
-FuC:\FreePascal-2.1.1\lazarus\lcl\units\$FPCTARGET\
-FuC:\FreePascal-2.1.1\lazarus\lcl\units\$FPCTARGET\win32
Make also sure, to remove all already wrongly compiled lazarus .ppu and .o
files from your projects.
Mattias
More information about the fpc-pascal
mailing list