This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


å 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]