problem compiling binutils-2.15.94 with gcc 3.3.3 (Cygwin on i686-Win2k)

Nick Clifton nickc@redhat.com
Tue Jan 4 10:04:00 GMT 2005


Hi Vijay,

> arlex.o(.text+0x0): In function `main':
> /usr/src/build-binutils/binutils/arlex.c:1: multiple definition of `_main'
> arparse.o(.text+0x0):/usr/src/build-binutils/binutils/arparse.c:1: first
> defined here

The file arparse.c should not be defining a main() function.  So this is 
the problem.

Things to check:  Are you using an old version of yacc or bison to builr 
arparse.c ?  (Unlikely, but possible)

Can you find out where the definition of main() in arparse.c comes from ?
What does the start of your arparse.c file look like ?  For example I 
have this:

    /*  A Bison parser, made from 
/sources/binutils/current/binutils/arparse.y
    by  GNU Bison version 1.25
     */

   #define YYBISON 1  /* Identify Bison output.  */

   #define	NEWLINE	258
   #define	VERBOSE	259

Cheers
   Nick



More information about the Binutils mailing list