[Build Error] return type defaults to 'int'

Jan Kratochvil jan.kratochvil@redhat.com
Sun Mar 25 12:21:00 GMT 2012


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



More information about the Gdb mailing list