Multiple Definition error for shared libraries

S

sjain

Guest
Hi,

I am new to this forum and this is my first posting on it. Well to sum up the issue, i am trying to build a shared libray on MAC 10.4.2 and am getting this strange error:

ld: multiple definition of symbol _SERVER_NAME_
abc.o definition of _SERVER_NAME_ in section (__DATA,__common)
xyz.o definition of _SERVER_NAME_ in section (__DATA,__common)

Could anyone please provide some info on to why i am getting this error and how can i resolve it. Please also note that i am using the -fno-common option along with my CFLAGS.

Thanks in advance. Please treat this as urgent!!!

Regards
-sjain
 
OP
R

ramprasad

Guest
Hi,

What kind of shared library are you creating??whether .dylib or .jnilib..Also give the full command that you use to create the shared library..I hope i may help then.
Bye.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top