0

In ubuntu when I "make" the terminal saids

rm -f *.d *.o lex.yy.c sysy.tab.c sysy.tab.h parser sysy.output
bison -d --report=all sysy.y
sysy.y: warning: 2 shift/reduce conflicts [-Wconflicts-sr]
flex sysy.l
g++ sysy.tab.c lex.yy.c -o parser 
/usr/bin/ld: /tmp/ccxyUpPX.o: in function `yyparse()':
sysy.tab.c:(.text+0xc0e): undefined reference to `node::node(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
/usr/bin/ld: sysy.tab.c:(.text+0xc9b): undefined referenc`your text`e to `node::push(std::initializer_list<node*>)'
/usr/bin/ld: sysy.tab.c:(.text+0xd2d): undefined reference to `node::node(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'

I have no idea about the problem

do me a favor please,I am totally a green hand,the method to solve the problem shall be as detailed as possible.

0 Answers0