lscp.y:1386:32: error: ‘yyrhs’ was not declared in this scop

You're new to the LinuxSampler world? You don't know where to start and nothing works? Here's the place to ask for help.
Post Reply
ct2034
Newbie
Posts: 1
Joined: Thu Aug 22, 2019 4:11 pm

lscp.y:1386:32: error: ‘yyrhs’ was not declared in this scop

Post by ct2034 » Thu Aug 22, 2019 4:19 pm

Hi. When compiling I get the error mentioned in the title.
I am using linuxsampler 2.1.1 source from tar
and libgig 4.2.0 (in case that matters)
on Ubuntu 18.04
using g++ 7.4.0.

Code: Select all

lscp.y: In function ‘bool _isRuleTerminalSymbol(int)’:
lscp.y:1386:18: error: ‘yyprhs’ was not declared in this scope
     for (int i = yyprhs[rule]; yyrhs[i] != -1; ++i)
                  ^~~~~~
lscp.y:1386:18: note: suggested alternative: ‘yyr2’
     for (int i = yyprhs[rule]; yyrhs[i] != -1; ++i)
                  ^~~~~~
                  yyr2
lscp.y:1386:32: error: ‘yyrhs’ was not declared in this scope
     for (int i = yyprhs[rule]; yyrhs[i] != -1; ++i)
                                ^~~~~
lscp.y:1386:32: note: suggested alternative: ‘yyr2’
     for (int i = yyprhs[rule]; yyrhs[i] != -1; ++i)
                                ^~~~~
                                yyr2
Makefile:448: recipe for target 'lscpparser.lo' failed

User avatar
cuse
Developer
Posts: 312
Joined: Wed Jan 23, 2008 10:07 pm
Location: Germany

Re: lscp.y:1386:32: error: ‘yyrhs’ was not declared in this

Post by cuse » Fri Aug 23, 2019 10:32 am

Make sure Bison is installed, then force the parser to be regenerated:

Code: Select all

make parser
make

Post Reply