[fpc-pascal] run pascal programs as scripts

Mattias Gaertner nc-gaertnma at netcologne.de
Sun Mar 27 21:51:13 CEST 2011


On Sun, 27 Mar 2011 21:16:58 +0200 (CEST)
Michael Van Canneyt <michael at freepascal.org> wrote:

> 
> 
> On Sun, 27 Mar 2011, Mattias Gaertner wrote:
> 
> > On Sun, 27 Mar 2011 19:05:12 +0200 (CEST)
> > Michael Van Canneyt <michael at freepascal.org> wrote:
> >
> >>
> >>
> >> On Sun, 27 Mar 2011, Mattias Gaertner wrote:
> >>
> >>> I wrote a little tool:
> >>>
> >>> http://wiki.lazarus.freepascal.org/InstantFPC
> >>
> >> Nice job. OK to include in FPC as one of the utils ?
> >
> > Yes.
> 
> Thank you. But please, fix a couple of bugs first:
> 
> 1. I get a stream read error each time I execute a script the first time (i.e. it's not yet in the cache) :
> home: >./helloworld.pas 
> An unhandled exception occurred at $0000000000425556 :
> EReadError : Stream read error
>    $0000000000425556
>    $00000000004256FA
>    $0000000000469E8A
>    $0000000000400A25

It works here.

 
> home: >./helloworld.pas
> Hello world 2
> 
> 
> 2. passing options on the commandline does not work on my Kubuntu 10.04:
> 
> home: >./envvars.pas 
> /usr/bin/env: instantfpc -Mobjfpc -Sh: No such file or directory

Fixed.

Mattias



More information about the fpc-pascal mailing list