New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Multiple Definition error for shared libraries


Post Reply New Thread Subscribe

 
Thread Tools
sjain
Guest
 
Posts: n/a

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
QUOTE Thanks
ramprasad
Guest
 
Posts: n/a

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.
QUOTE Thanks

Post Reply New Thread Subscribe


« Using cc in darwin: command not found. | compiling a c program »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Running Multiple Instances of the Same Program DanielNTX Switcher Hangout 1 11-18-2005 07:55 AM
multiple items info MAC-simus OS X - Operating System 2 07-20-2005 12:35 PM
Multiple libraries in iTunes? Abdiel Music, Audio, and Podcasting 5 07-13-2005 01:05 AM
Does anyone own multiple iPODS? If so, how do you utilize them?/ VakeJ iPod Hardware and Accessories 15 02-28-2005 11:38 AM
Multiple Movie DVDs gabe90 Movies and Video 4 02-08-2005 06:24 AM

All times are GMT -4. The time now is 07:40 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?