On Mon, Mar 16, 2009, Atro Tossavainen wrote:
> >> cc -c -O -DSUN -DSYSV -DBINTRAJ -Dlex embed.c
> >> "lex.dg_options.c", line 75: non-constant initializer: op "NAME"
> >> cc: acomp failed for embed.c
Could you post the lex.dg_options.c file? This is created by lex under
SunOS, and is apparently quite different than that created by flex under
Linux.
>
> I can only confirm this (Solaris 10, Sun Studio 11). Line 75 in either
> file does not make sense to me in this context. Is there anything in
> particular I should be looking for?
>
> But see also this:
>
> Solaris10machine $ gcc -c -O -DSUN -DSYSV -DBINTRAJ -Dlex embed.c
> In file included from embed.c:130:
> lex.dg_options.c:75: error: initializer element is not constant
> lex.dg_options.c:75: error: (near initialization for `dgoout')
My best guess is that there is some line like this in you
lex.dg_options.c:
if ( ! dgoout )
dgoout = nabout;
Change "nabout" above to "stdout" and see if that helps.
...dac
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Wed Mar 18 2009 - 01:08:20 PDT