Re: [fpc-pascal] Free Pascal Directories

2014-10-06 Thread fredvs
Hello. I use Geany and fpGUI for ages now. ;-) All you have to do => In Geany: - Click on "Define construct command => In "Compile command" => fpc "%f" @extrafpc.cfg extrafpc.cfp is a text file with all your -fu and -fi needed. Here example of a fpGUI extrafpc.cfg => >> -fPIC -Fi/ho

Re: [fpc-pascal] Free Pascal Directories

2014-10-04 Thread Graeme Geldenhuys
On 2014-10-02 19:23, Brian wrote: > When the helloworld.pas file is compiled using Geany Take a look at the /docs/INSTALL.txt file. There I explain how to setup and use fpGUI with various IDE's and editors. Maybe some of that information can be applied to Geany. Sorry I have never used Geany myse

Re: [fpc-pascal] Free Pascal Directories

2014-10-04 Thread Graeme Geldenhuys
On 2014-10-02 18:21, Brian wrote: > Is there any way to tell the compiler to just link existing .ppu and .o > files ? Yes. In the case of fpGUI (as as an example), the /src/build.bat or build.sh builds the fpGUI framework and places the compiled units in a library output directory /lib/ The examp

Re: [fpc-pascal] Free Pascal Directories

2014-10-03 Thread Sven Barth
Am 04.10.2014 00:03 schrieb "Tomas Hajny" : > > On 3 Oct 14, at 23:53, Sven Barth wrote: > > Am 03.10.2014 03:37 schrieb "Philippe" : > > > > > > @cfg > > > > > > I read about that option in a previous message of the thread ... clearly > > a better ideia!!! ... I´ll use it for sure! > > > > > > ta

Re: [fpc-pascal] Free Pascal Directories

2014-10-03 Thread Tomas Hajny
On 3 Oct 14, at 19:16, Philippe wrote: > fpc -h > > Free Pascal Compiler version 2.6.4 [2014/03/06] for > i386 . . '@' is indeed listed in help only in recent trunk compiler (since July). Tomas ___ fpc-pascal maillist - fpc-pascal@lists.freepas

Re: [fpc-pascal] Free Pascal Directories

2014-10-03 Thread Philippe
fpc -h Free Pascal Compiler version 2.6.4 [2014/03/06] for i386 Copyright (c) 1993-2014 by Florian Klaempfl and others c:FPC2.6.4bini386-Win32ppc386.exe [options] [options] Put + after a boolean switch option to enable it, - to disable it -a The compiler doesn't delete the generated assemble

Re: [fpc-pascal] Free Pascal Directories

2014-10-03 Thread Tomas Hajny
On 3 Oct 14, at 23:53, Sven Barth wrote: > Am 03.10.2014 03:37 schrieb "Philippe" : > > > > @cfg > > > > I read about that option in a previous message of the thread ... clearly > a better ideia!!! ... I´ll use it for sure! > > > > taking advantage of the oportunity. when one type fpc in the comma

Re: [fpc-pascal] Free Pascal Directories

2014-10-03 Thread Sven Barth
Am 03.10.2014 03:37 schrieb "Philippe" : > > @cfg > > I read about that option in a previous message of the thread ... clearly a better ideia!!! ... I´ll use it for sure! > > taking advantage of the oportunity. when one type fpc in the command line, he/she gets: > > > > D:\psl9\c9>fpc > Free Pascal

Re: [fpc-pascal] Free Pascal Directories

2014-10-03 Thread Marco van de Voort
In our previous episode, silvioprog said: > > >[...] > > > But it would be an nice feature in Free Pascal, something like the > > "import" > > > of Python and Java. =) > > > > Java requires a CLASSPATH for the imports to work, does it not? > > You can import one or more classes. E.g, you can use i

Re: [fpc-pascal] Free Pascal Directories

2014-10-02 Thread Philippe
@cfg I read about that option in a previous message of the thread ... clearly a better ideia!!! ... I´ll use it for sure! taking advantage of the oportunity. when one type fpc in the command line, he/she gets: D:psl9c9>fpc Free Pascal Compiler version 2.6.4 [2014/03/06] for i386 Copyright

Re: [fpc-pascal] Free Pascal Directories

2014-10-02 Thread Sven Barth
Am 02.10.2014 22:25 schrieb "Philippe" : > > bad ideia : > > (with windows we have a limite from the command line size!) If you can't work with 8000 characters then simply use a cfg file and pass that. It's not as if you change your paths every hour... Regards, Sven __

Re: [fpc-pascal] Free Pascal Directories

2014-10-02 Thread silvioprog
On Thu, Oct 2, 2014 at 6:51 PM, Mattias Gaertner wrote: > On Thu, 2 Oct 2014 18:40:01 -0300 > silvioprog wrote: > > >[...] > > But it would be an nice feature in Free Pascal, something like the > "import" > > of Python and Java. =) > > Java requires a CLASSPATH for the imports to work, does it n

Re: [fpc-pascal] Free Pascal Directories

2014-10-02 Thread Mattias Gaertner
On Thu, 2 Oct 2014 18:40:01 -0300 silvioprog wrote: >[...] > But it would be an nice feature in Free Pascal, something like the "import" > of Python and Java. =) Java requires a CLASSPATH for the imports to work, does it not? Mattias ___ fpc-pascal ma

Re: [fpc-pascal] Free Pascal Directories

2014-10-02 Thread silvioprog
On Thu, Oct 2, 2014 at 6:34 PM, Jonas Maebe wrote: > On 02/10/14 23:23, silvioprog wrote: > >> On Thu, Oct 2, 2014 at 6:13 PM, Jonas Maebe > > wrote: >> >> "Note that this switch does not propagate to other units, i.e. it’s >> scope is limited to the curr

Re: [fpc-pascal] Free Pascal Directories

2014-10-02 Thread Jonas Maebe
On 02/10/14 23:23, silvioprog wrote: On Thu, Oct 2, 2014 at 6:13 PM, Jonas Maebe mailto:jonas.ma...@elis.ugent.be>> wrote: "Note that this switch does not propagate to other units, i.e. it’s scope is limited to the current unit." "unit" should be interpreted as "compilation unit" in

Re: [fpc-pascal] Free Pascal Directories

2014-10-02 Thread silvioprog
On Thu, Oct 2, 2014 at 6:13 PM, Jonas Maebe wrote: > On 02/10/14 22:52, Brian wrote: > >> Conclusion : >> >> Using {$UNITPATH/home/some/*} in the main program DOES NOT WORK ! >> > > It behaves exactly as documented at http://www.freepascal.org/ > docs-html/prog/progsu121.html : > > "Note that thi

Re: [fpc-pascal] Free Pascal Directories

2014-10-02 Thread Jonas Maebe
On 02/10/14 22:52, Brian wrote: Conclusion : Using {$UNITPATH/home/some/*} in the main program DOES NOT WORK ! It behaves exactly as documented at http://www.freepascal.org/docs-html/prog/progsu121.html : "Note that this switch does not propagate to other units, i.e. it’s scope is limited

Re: [fpc-pascal] Free Pascal Directories

2014-10-02 Thread silvioprog
On Thu, Oct 2, 2014 at 5:52 PM, Brian wrote: > Conclusion : > > Using {$UNITPATH /home/some/*} in the main program DOES NOT WORK ! > [...] =( -- Silvio Clécio My public projects - github.com/silvioprog ___ fpc-pascal maillist - fpc-pascal@lists.free

Re: [fpc-pascal] Free Pascal Directories

2014-10-02 Thread Brian
Conclusion : Using {$UNITPATH /home/some/*} in the main program DOES NOT WORK ! When using Geany if the directive is added in Set Build Command , COMPILE line as -Fu/home/some/* it works properly. Much better than dumping everything into one pot. Regards Brian -- View this message in context

Re: [fpc-pascal] Free Pascal Directories

2014-10-02 Thread Philippe
bad ideia : (with windows we have a limite from the command line size!) I copy recursively all the files from directories I need in a unique directory ... then compile from it!!! ugly! ... may be ... but it works !!! recursively!!! and it is quite fast to copy ... and I spent time in other

Re: [fpc-pascal] Free Pascal Directories

2014-10-02 Thread Brian
My mistake ... Using directive -Va I can see that PFC cannot find fpg_base also. Question : Does the directive $UNITPATH acvtually work ? Regards Brian -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Free-Pascal-Directories-tp5720212p5720266.html Sent from t

Re: [fpc-pascal] Free Pascal Directories

2014-10-02 Thread silvioprog
>On Tue, 30 Sep 2014, Philippe wrote: >> some days before we had same type of thread ... >> >> the "problem" is >> >> -Fu is not recursive! > >And luckily not. The result would be a disaster ! > >However, you can use wildcards: >-Fu/home/some/dir/* > >Michael. Can I use {$unitpaht /home/some/dir/*

Re: [fpc-pascal] Free Pascal Directories

2014-10-02 Thread Brian
The compiler accepts the directory and loads the first unit fpg_base , but then fails to load the next unit that is called by fpg_base which is fpg_impl . Then it fails. Regards Brian -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Free-Pascal-Directories-tp57

Re: [fpc-pascal] Free Pascal Directories

2014-10-02 Thread Marco van de Voort
In our previous episode, Brian said: > The fpGUI units were recompiled with directive -Ur > > When the helloworld.pas file is compiled using Geany (with -Ur and -Va) for > some reason FPC can't find the unit (fpg_impl.ppu) called by fp_base , even > though it is present in the folder with fpb_base

Re: [fpc-pascal] Free Pascal Directories

2014-10-02 Thread Brian
Marco , The fpGUI units were recompiled with directive -Ur When the helloworld.pas file is compiled using Geany (with -Ur and -Va) for some reason FPC can't find the unit (fpg_impl.ppu) called by fp_base , even though it is present in the folder with fpb_base. [0.058] Load from FPG_BASE (interfa

Re: [fpc-pascal] Free Pascal Directories

2014-10-02 Thread Marco van de Voort
In our previous episode, Brian said: > > Is there any way to tell the compiler to just link existing .ppu and .o > files ? There are three things in such case: - compile the immutable packages with -Ur - find actually WHY the compiler doesn't want to use the .ppu's and get to the root of the p

Re: [fpc-pascal] Free Pascal Directories

2014-10-02 Thread Brian
Thanks Michael. Jonas tip allows me to see what is happening when using Geany. In the case of fpGUI , the fpmake creates all the .ppu and .o files and places them in directory ../i386-linux. Using either the wildcard * or absolute name of the directory is ok . The compiler finds (in this example)

Re: [fpc-pascal] Free Pascal Directories

2014-10-02 Thread Michael Van Canneyt
On Thu, 2 Oct 2014, Brian wrote: Jonas , thanks very much as I now see what is happening. FPC only searches the specific directory and not any lower level directories. In this case the unit called is in a lower level directory. Is there any way using Geany to add $UNITPATH directives in the

Re: [fpc-pascal] Free Pascal Directories

2014-10-02 Thread Brian
Jonas , thanks very much as I now see what is happening. FPC only searches the specific directory and not any lower level directories. In this case the unit called is in a lower level directory. Is there any way using Geany to add $UNITPATH directives in the main program or path info in Geany so

Re: [fpc-pascal] Free Pascal Directories

2014-10-02 Thread Jonas Maebe
On 02 Oct 2014, at 15:30, Brian wrote: Thanks for all the commandline suggestions , but my question is about using Geany as the IDE , not running the compiler from the commandline. Geany itself will call the compiler via the command line, so it presumably has ways to specify additional co

Re: [fpc-pascal] Free Pascal Directories

2014-10-02 Thread Brian
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 uni

Re: [fpc-pascal] Free Pascal Directories

2014-10-01 Thread Graeme Geldenhuys
On 2014-10-01 23:46, Mattias Gaertner wrote: > fpc -Fufpgui/fpgui-1.2/src/units/i386-linux -Fu... yourprogram.pas > And put it into the build commands. And just to clarify for Brian the *.cfg file is simply a text file containing one FPC command line parameter per line. You then only need to r

Re: [fpc-pascal] Free Pascal Directories

2014-10-01 Thread Mattias Gaertner
On Wed, 1 Oct 2014 15:16:13 -0700 (PDT) Brian wrote: >[...] > > Do you have an example of how you can pass the unit paths via -Fu in Geany > > ? If you don't know how to do this in Geany, maybe it is not a good editor choice for you. You use the command line from the terminal: fpc -Fufpgui/fpgu

Re: [fpc-pascal] Free Pascal Directories

2014-10-01 Thread Brian
Mattias Gaertner wrote > On Wed, 1 Oct 2014 13:39:39 -0700 (PDT) > Brian < > vmst@ > > 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 u

Re: [fpc-pascal] Free Pascal Directories

2014-10-01 Thread Mattias Gaertner
On Wed, 1 Oct 2014 13:39:39 -0700 (PDT) Brian 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 commandlin

Re: [fpc-pascal] Free Pascal Directories

2014-10-01 Thread Brian
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 e

Re: [fpc-pascal] Free Pascal Directories

2014-10-01 Thread Philippe
as for other points (for example "with" use/misuse) ... for me -Fu recursive, "with" statement and others may be usefull tools ... not for you! there no absolute answer! may be other people don't do the same kind of job I do, or you do. may they they don't work the same way I do, or you do!

Re: [fpc-pascal] Free Pascal Directories

2014-09-30 Thread Graeme Geldenhuys
On 2014-09-30 14:58, Brian wrote: > For example if I decide to use fpGUI , I would like to put all the fpGUI > source code into one directory fpGUI is scattered over multiple directories too, so no idea why you thought all units must be in a single directory. In the /src/ directory is a "extrafp

Re: [fpc-pascal] Free Pascal Directories

2014-09-30 Thread Graeme Geldenhuys
On 2014-09-30 16:47, Michael Thompson wrote: > Shouldn't take you long to generate a similar app for automating a string > for -Fu. :-) +1 :-D Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ __

Re: [fpc-pascal] Free Pascal Directories

2014-09-30 Thread leledumbo
> That's not what Brian asked for. He asked whether he can use multiple > directories, not whether he can use them recursively. And the former is > definitely the case. And indeed it's a disaster, because you might to restructure your units directory if it works recursively depending on how you

Re: [fpc-pascal] Free Pascal Directories

2014-09-30 Thread Sven Barth
On 30.09.2014 16:27, Philippe wrote: some days before we had same type of thread ... the "problem" is -Fu is not recursive! That's not what Brian asked for. He asked whether he can use multiple directories, not whether he can use them recursively. And the former is definitely the case. Re

Re: [fpc-pascal] Free Pascal Directories

2014-09-30 Thread Michael Thompson
On 30 September 2014 16:27, Philippe wrote: > some days before we had same type of thread ... > > the "problem" is > > -Fu is not recursive! > We're programmers. Creating our own tools for mundane work is not a "problem" :-) A few year back at my old company, for Delphi work we developed a sma

Re: [fpc-pascal] Free Pascal Directories

2014-09-30 Thread Michael Van Canneyt
On Tue, 30 Sep 2014, Philippe wrote: some days before we had same type of thread ... the "problem" is -Fu is not recursive! And luckily not. The result would be a disaster ! However, you can use wildcards: -Fu/home/some/dir/* Michael. ___ fpc-

Re: [fpc-pascal] Free Pascal Directories

2014-09-30 Thread Philippe
some days before we had same type of thread ... the "problem" is -Fu is not recursive! Em 30.09.2014 11:07, Michael Van Canneyt escreveu: > On Tue, 30 Sep 2014, Brian wrote: > >> Having ported a large real-time graphical application from Virtual Pascal (DPMI) to Free Pascal Linux , ther

Re: [fpc-pascal] Free Pascal Directories

2014-09-30 Thread Michael Van Canneyt
On Tue, 30 Sep 2014, Brian wrote: Having ported a large real-time graphical application from Virtual Pascal (DPMI) to Free Pascal Linux , there is one aspect I haven't managed to overcome. For a number of reasons Lazarus was not used , and Geany is used as the IDE , which works well. Unlike

[fpc-pascal] Free Pascal Directories

2014-09-30 Thread Brian
Having ported a large real-time graphical application from Virtual Pascal (DPMI) to Free Pascal Linux , there is one aspect I haven't managed to overcome. For a number of reasons Lazarus was not used , and Geany is used as the IDE , which works well. Unlike Virtual Pascal which allowed me to put