Re: [Build Error] return type defaults to 'int'

Jan Kratochvil
2012-03-25T12:21:43Z

On Sun, 25 Mar 2012 14:16:37 +0200, Zhihua Che wrote:
> I'm building gdb using git repository and maybe find a bug.
> After configure, several .c files are generated under <gdb-build>/gdb,
> such as c-exp.c cp-name-parser.c, but they are all not complying with
> c grammar. Precisely, the functions in them miss a return value, like
> the below
> main() { return 0;}

Install flex and bison and then delete this gdb source tree, unpack it and
rebuild again. Best rebuild your distro gdb first which will install all the
pre-requisite build tools.

I agree GDB should behave better.

Regards,
Jan