NOT A BUG Report :-)

Fri, 13 Jun 1997 23:59:24 +0800


Whew, this is not another bug report! :-0  Its a suggestion for a feature
that I'd like in GPC.

Sometimes I have to link in 'C' (ugh) code with GPC. Usually this 'C' code
has been compiled into a ".a" library. Is there any way I can tell GPC to
automatically link this ".a" file with my program using automake? At the
moment I have to type:
  
   GPC program.pas -o program.exe library.a --automake

Is there any way another compiler define could be added into the source of a
unit to tell automake that "library.a" must be linked with the program.
Something along the lines of {$LINK "library.a"} or the Borlandish
{$O libary.a}

I know that this is REALLY DIFFICULT to do because the unit must somehow
tell the calling GPC that it must also link the ".a" library. But something
like this is already done using units...

Please tell me if Im setting my expectations of GPC a little too high :-)
 ________________________
|  _)        | |             e-mail: bernie@icenet.com.au
|___)ernhard |_|schirren             ptschirrenb@cc.curtin.edu.au
                             www:    www.geocities.com/CollegePark/Quad/8070/


Bernhard Tschirren (bernie@icenet.com.au)

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