Re: [fpc-pascal]make files
On Sun, Sep 07, 2003 at 04:30:39PM -0400, Frank W McCormick wrote: > Hi all > > Can someone give me a simple example of a makefile suitable for just > simple compiling of one file ? I am so used to running FPC > from the command line that make is foreign to me. Catch! cheers James -- - -Zero Defect Software Engineers Group - ZDSEG - -You need only two tools. WD-40 and duct tape. -If it doesn't move and it should, use WD-40. -If it moves and shouldn't, use the tape. psb=psb.pas all: psb psb: $(psb) fpc $(psb) debug: $(psb) fpc -bl -gg $(psb) clean: rm -f *ppu* *.o psb *~
[fpc-pascal]RE: Read from command line
There is a subtle difference between ParamStr(0) and argv[0]: argv[0] is the verbatim command passed to the shell. ParamStr(0) is the full path to the executable. Neither of these will dereference a symlink, to do that you can call ReadLink recursively, or ReadLink(/proc//exe) Also note that the argv's are zero-based pchar's, the paramstr's are one-based pascal strings. The argv's are also writeable: This works: argv[0][1]:='x'; But this doesn't: ParamStr(0)[1]:='x'; __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal]RE: make files
> Can someone give me a simple example of a makefile suitable for > just simple compiling of one file ? I am so used to running FPC > from the command line that make is foreign to me. [EXAMPLE] #!/bin/bash all: ppc386 somefile.pas debug: ppc386 -vewh -gl -Crtoi somefile.pp clean: rm -f *.o *.ppu install: all cp somefile /usr/local/bin uninstall: rm -f /usr/local/bin/somefile [/EXAMPLE] Notes: The #!/bin/bash line isn't really necessary unless you have some shell-specific commands in your makefile. ( It is best to avoid this if possible ) The indentation of the commands below each section MUST be done with tabs, not spaces. This always catches me because I have have tab emulation turned on in my editor. Identifiers after the colon on a section line insure that the other section is up to date. The word "all" isn't magic, it is just conventional. If you invoke make without any arguments, it will default to the first section, regardless of what it is named. Lots more info here: http://www.gnu.org/manual/make/index.html HTH, - Jeff __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal]How to unsubscribe???
Hello, Could someone please provide unsubscribe information for this list? OR... could the list admin, please boot me off . Thanks. -- Best regards, L D Blake ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal]How to unsubscribe???
L D Blake wrote: Hello, Could someone please provide unsubscribe information for this list? OR... could the list admin, please boot me off . See the link added to the bottom of every message. Carlo Kok ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal]How to unsubscribe???
> Could someone please provide unsubscribe information for this list? > > OR... could the list admin, please boot me off . > fpc-pascal maillist - [EMAIL PROTECTED] > http://lists.freepascal.org/mailman/listinfo/fpc-pascal Follow the URL, Luke :-) ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal]No source file named ...
Hi again Yet another problem - this one seems more or less erratic, though I haven't found a cause yet. Sometimes it works, sometimes not. When in gdb, I get: (gdb) br wav_fmt.pas:330 No source file named wav_fmt.pas. I checked that I was in the correct directory: (gdb) pwd Working directory /data/projects/circ4/gl4/sstv_gen. Which is correct, and the wav_fmt.pas file _does_ exist there. Now, I did some debugging just a few days ago, when this _did_ work ok. 's'tep into a function doesn't work either. It behaves as 'n'ext Help! Once again, the search engines didn't deliver... John ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal]Can't find unit DRIVERS
Hi all. Just downloaded the 1.0.10 package and tried to compile the ide. I had quite a few problems: 1) in packages/ two directories seem to be in the wrong directory. Imlib and Gnome are looked for in the extra directory and they installed in the root of packages. (Gnome is looked for as gnome1?). Anyway, I moved both into extra/ and compilation went well. 2) recompiled everything else, but finally was stopped here (doing a 'make ide'): LibGDB not found LIBGDB= GDBLIBDIR=/usr/local/src/fpc-1.0.10/packages/base/gdbint/libgdb/linux /usr/local/bin/ppc386 -dUNIX -dCOMPILER_1_0 -Fufakegdb -Xs -OG2p3 -n -Sg -Fucompiler -Fu/usr/local/src/fpc-1.0.10/rtl/linux -Fu/usr/local/src/fpc-1.0.10/packages/base/gdbint -Fu/usr/local/src/fpc-1.0.10/packages/base/regexpr -FE. -Fl/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2 -Fl/usr/local/lib -Fl/usr/X11R6/lib -Fl/usr/i386-slackware-linux/lib -Fl/opt/gnome/lib -Fl/opt/mysql/lib/mysql -Fl/usr/openwin/lib -Fl/opt/kde/lib -Fl/usr/lib/qt/lib -Fl/usr/local/lib/sane -di386 -dRELEASE fp.pas fpcatch.pas(67,10) Fatal: Can't find unit DRIVERS make[2]: *** [fp] Error 1 make[2]: Leaving directory `/usr/local/src/fpc-1.0.10/ide' make[1]: *** [gdb] Error 2 make[1]: Leaving directory `/usr/local/src/fpc-1.0.10/ide' make: *** [ide] Error 2 I've looked around the 'net, but no ref to this particular error. Suggestions? John ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal]No source file named ...
On Mon, 8 Sep 2003 21:05:39 -0300 John Coppens <[EMAIL PROTECTED]> wrote: > Hi again > > Yet another problem - this one seems more or less erratic, though I > haven't found a cause yet. Sometimes it works, sometimes not. When in > gdb, I get: > > (gdb) br wav_fmt.pas:330 > No source file named wav_fmt.pas. > Solved - It seems that if there is another gdb open, the second session doesn't work right. I had another gdb open on the same file to be debugged and forgot about it. On another desktop I called gdb again and got the described problems. John ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal]Can't find unit DRIVERS
Hi all. Just downloaded the 1.0.10 package and tried to compile the ide. I had quite a few problems: 1) in packages/ two directories seem to be in the wrong directory. Imlib and Gnome are looked for in the extra directory and they installed in the root of packages. (Gnome is looked for as gnome1?). Anyway, I moved both into extra/ and compilation went well. 2) recompiled everything else, but finally was stopped here (doing a 'make ide'): LibGDB not found LIBGDB= GDBLIBDIR=/usr/local/src/fpc-1.0.10/packages/base/gdbint/libgdb/linux /usr/local/bin/ppc386 -dUNIX -dCOMPILER_1_0 -Fufakegdb -Xs -OG2p3 -n -Sg -Fucompiler -Fu/usr/local/src/fpc-1.0.10/rtl/linux -Fu/usr/local/src/fpc-1.0.10/packages/base/gdbint -Fu/usr/local/src/fpc-1.0.10/packages/base/regexpr -FE. -Fl/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2 -Fl/usr/local/lib -Fl/usr/X11R6/lib -Fl/usr/i386-slackware-linux/lib -Fl/opt/gnome/lib -Fl/opt/mysql/lib/mysql -Fl/usr/openwin/lib -Fl/opt/kde/lib -Fl/usr/lib/qt/lib -Fl/usr/local/lib/sane -di386 -dRELEASE fp.pas fpcatch.pas(67,10) Fatal: Can't find unit DRIVERS make[2]: *** [fp] Error 1 make[2]: Leaving directory `/usr/local/src/fpc-1.0.10/ide' make[1]: *** [gdb] Error 2 make[1]: Leaving directory `/usr/local/src/fpc-1.0.10/ide' make: *** [ide] Error 2 I've looked around the 'net, but no ref to this particular error. Suggestions? John ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal