Re: [AMBER] Probmlems compiling under macOS

From: David A Case <david.case.rutgers.edu>
Date: Mon, 8 Feb 2021 09:58:30 -0500

On Mon, Feb 08, 2021, Gustaf Olsson wrote:
>
>Following the same procedure as on my personal mac, the process initially
>failed. I proceeded to rebuild my package install base and tried again
>without success. I am again arriving at this error:
>
> amber20_src/build/AmberTools/src/leap/src/leap/y.tab.c:1406:16: error: implicit declaration of
> function 'yylex' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
> yychar = YYLEX;

Looks like you are using the old configure system: is that correct?

Can you try this?: at about line 199 of parser.y change the
following lines:

static int yyerror( char *sStr );
static int yylex();
static int yyparse();

to these:

int yyerror( char *sStr );
int yylex();
extern int yyparse();

Then recompile.

...thx...dac


_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Mon Feb 08 2021 - 07:00:03 PST
Custom Search