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

Zhihua Che
2012-03-26T02:52:39Z

在 2012年3月25日 下午8:21，Jan Kratochvil <jan.kratochvil@redhat.com> 写道：
> 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

After installing bison，I guess I made it and it worked, maybe I missed
something during configure.