[fpc-pascal] Free Pascal Directories

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Oct 1 22:50:15 CEST 2014


On Wed, 1 Oct 2014 13:39:39 -0700 (PDT)
Brian <vmst at golden.net> wrote:

> Sorry , I wasn't specific about my problem. Using the example in the fpGUI
> distribution (but the following comments are not specific to fpGUI).
> 
> I want to use Geany as the IDE without using .CFG files and compiling from
> the commandline.
> 
> If UNITPATH is set in the main program (the fpGUI is a good example) , it
> will fail to find  fpg_base
> helloworld.pas(27,3) Fatal: Can't find unit fpg_base used by HelloWorld
> 
> program HelloWorld;
> 
> {$mode objfpc}{$H+}
> 
> {$UNITPATH .../fpgui/fpgui-1.2/src/units/i386-linux}

You can give this directive multiple times to add all needed paths.
Or you can pass the unit paths via -Fu in Geany.

Mattias



More information about the fpc-pascal mailing list