Unable to compile/link simple calculator example

2009-05-07 Thread David Coste
Hello everybody, I'm trying to compile the simple calculator provided in this message : http://www.mail-archive.com/help-bison@gnu.org/msg00156.html I get this message : calc.y: In function ‘calc_parse’: calc.y:26: warning: incompatible implicit declaration of built-in function ‘printf’ calc.y:

Re: Unable to compile/link simple calculator example

2009-05-07 Thread David Coste
Solved. Just added an include "stdlib.h" in calc.y. Also added a -lm in the Makefile to avoid undefined "pow" and "sqrt" symbol errors. Sorry for the inconvenience. David Coste wrote: Hello everybody, I'm trying to compile the simple calculator provided in this message : http://www.mail-arch