This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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: problem compiling binutils-2.15.94 with gcc 3.3.3 (Cygwin oni686-Win2k)


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


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