Gpc not accepting non-standard (?) systax.

Mon, 20 Oct 1997 11:19:56 +0100







I have just :-
1. Moved to a newly set up, tidy, Linux machine (i586-pc-linux).
2. Built a Linux native gpc-971001 for the first time. (970824 didn't build
as it required a pre-existing gpc which I had on my old, untidy, machine
but don't have on the new one)

I find :-
When I try to compile a program that compiled sucessfully under 970824 on
the old machine it now fails to compile. It is complaining about some
features that I know aren't new and I thought were standard gpc.

The 'C' directive on external procedures.

FUNCTION _p_paramcount : Integer; C;
EXTERNAL ;
FUNCTION _p_paramstr (num: Integer; VAR str: String): Boolean; C;
EXTERNAL ;

    It says :
          : parse error before `External'

If I comment these out it fails on a structured constant definition using
'value'.

   type
      ArgDefs = ArgDefTable value (
        (('                ',  1,  0), 0, OptionalArg, NullArg),
         etc...

    It says :
          : parse error before `Value'
          : invalid schema discriminants

 If I comment out 'value' it says
         : parse error before `,'
         : missing expression
         : discriminated type is not a schema or string
         : parse error before `,'

Is there some configuration I need to do to make these work ? Or have I
found a bug ?

Yours in anticipation,

Richard Kerry.




richard.kerry@quantel.com (richard.kerry@quantel.com)

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