Thanks for all the commandline suggestions , but my question is about using Geany as the IDE , not running the compiler from the commandline. BTW : I only use fpGUI as an example to illustrate the issue.
Using Geany as the IDE : The FPC documentation is not correct : 1.3.38 $UNITPATH : Specify unit path. http://www.freepascal.org/docs-html/prog/progsu121.html#x129-1300001.3.38 If the directive is added (below) to the main program FPC will fail to find the unit directory i386-linux. {$UNITPATH .../fpgui/fpgui-1.2/src/units/i386-linux} To make it work you must include the absolute directory path such as : {$UNITPATH /home/mydir/fpgui/fpgui-1.2/src/units/i386-linux} and then it only finds the first unit in the uses list and cannot find the rest of the units in i386-linux. Why doesn't FPC continue to look for units in the directory specified by $UNITPATH ? Regards Brian -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Free-Pascal-Directories-tp5720212p5720248.html Sent from the Free Pascal - General mailing list archive at Nabble.com. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal