{$L} Good - but not good enough!_(re)

Sat, 9 Aug 1997 11:10:10 +0200 (MEST)


According to Bernhard Tschirren:
> {$L filename} does not work with library files. For example {$L libgrx.a}
> does not work because GPC tries to link 'libgrx.o' !?

Ups - sorry, I should not produce such trivial errors.
(-# Probably I was tired when I wrote that.)

8< --------------------------------------------------------------------------
--- gpc-970806/p/gpc-lex.c      Wed Jun 25 01:56:57 1997
+++ gpc/p/gpc-lex.c     Sat Aug  9 10:52:26 1997
@@ -232,7 +232,7 @@
             while (p > filename && *p != '.')
               p--;
             if (*p == '.'
-                && (p[1] != 'o' || p[1] != 'a' || p[2] != 0))
+                && ((p[1] != 'o' && p[1] != 'a') || p[2] != 0))
               {
                 /* Extension given, but not a linker input file.
                  * Recompile it with --automake, if necessary.
8< --------------------------------------------------------------------------

One problem remains with this: GPC does not search the `-L' directories,
but only checks the current one.

    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 [970714] - http://home.pages.de/~gnu-pascal/ [970125]


Peter Gerwinski (peter@agnes.dida.physik.NO-SPAM-PLEASE.de)

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