Gpc _(re)

Tue, 4 Feb 1997 00:21:02 +0100 (MET)


> I have no problems compiling and running under Borland, but I do not have
> dos based machines at my disposal and would like to compile under either
> gpc or xlp. 

Xlp?  Is that something we should know about?

> Is there some library i need to tell it to link?

GNU Pascal has no built-in Assign procedure.  You can use the
"BPCompat" Unit from the "contrib" subdirectory of the GPC
source distribution (same as the "System" Unit from the new
BPCompat package).  Alternatively you can write it yourself
using Extended Pascal's "bind" mechanism:


    Type
      WrkString = String ( 255 );


    Procedure Assign ( Var T: Text; Name: WrkString );

    Var
      B: BindingType;

    begin (* Assign *)
      unbind ( T );
      B:= binding ( T );
      B.Name:= Name;
      bind ( T, B );
      B:= binding ( T );
    end (* Assign *);
 

Hope this helps,

    Peter

  Dipl.-Phys. Peter Gerwinski, Essen, Germany, free physicist and programmer
peter.gerwinski@uni-essen.de - http://home.pages.de/~peter.gerwinski/ [970201]
       maintainer GNU Pascal - http://home.pages.de/~gnu-pascal/ [970125]


Peter Gerwinski (peter@agnes.dida.physik.uni-essen.de)

HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada - Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es