Michael Rubinstein on Thu, 30 Oct 2003 19:32:11 +0100


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

multiple definitions error on mac os x


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

Any ideas on what might be causing the
error and how to fix it? The code compiles okay on
redhat 9.0

Thanks for any help!
Mike.

When I 'make' I get the following:

g++ -c my_cmd.c -I/usr/local/include/pari
g++ -c my.cc -I/usr/local/include/pari
g++ -c my_matrix.cc -I/usr/local/include/pari
g++ -c my_common.cc -I/usr/local/include/par
g++ my.o my_cmd.o my_matrix.o my_common.o -L/usr/local/lib -lpari -lm -o my
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)