Re: [AMBER] Probmlems compiling under macOS

From: David A Case <>
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/ 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.


AMBER mailing list
Received on Mon Feb 08 2021 - 07:00:03 PST
Custom Search