Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Multiple Definition error for shared libraries
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="sjain" data-source="post: 167591"><p>Hi,</p><p></p><p> 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: </p><p></p><p>ld: multiple definition of symbol _SERVER_NAME_</p><p>abc.o definition of _SERVER_NAME_ in section (__DATA,__common)</p><p>xyz.o definition of _SERVER_NAME_ in section (__DATA,__common)</p><p></p><p>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. </p><p></p><p>Thanks in advance. Please treat this as urgent!!!</p><p></p><p>Regards</p><p>-sjain</p></blockquote><p></p>
[QUOTE="sjain, post: 167591"] 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]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Multiple Definition error for shared libraries
Top