Bill Allombert on Fri, 31 Oct 2003 11:40:29 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: multiple definitions error on mac os x


On Thu, Oct 30, 2003 at 01:05:14PM -0500, Michael Rubinstein wrote:
> 
> I'm trying to compile some c code on mac os x 10.2.8 which
> includes "pari.h". I get a 'multiple definitions'
> error (output below).

What version of PARI are you using ? Only 2.2.6 is fixed
to work on Mac OS X

> ld: multiple definitions of symbol _hiremainder
> my.o definition of _hiremainder in section (__DATA,__data)
> my_matrix.o definition of _hiremainder in section (__DATA,__data)
> ld: multiple definitions of symbol _overflow
> my.o definition of _overflow in section (__DATA,__data)
> my_matrix.o definition of _overflow in section (__DATA,__data)
> my_common.o definition of _hiremainder in section (__DATA,__data)
> my_common.o definition of _overflow in section (__DATA,__data)

You should try to compile with '-fno-common'.

Cheers,
Bill.