By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,494 Members | 1,736 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,494 IT Pros & Developers. It's quick & easy.

Multiple Definition of Symbols

P: n/a
Hi all,
I am using gcc 4.0 with Xcode 2.2 on Mac OS 10.4.3.
I am using two static lib's in my project, which in turn include zlib.
I get "multiple definition of symbol" Linker error.

While using msvc 7.0 linker flag "/FORCE:MULTIPLE" eliminates this
error.

Is there a similar flag for gcc?

or Can any one tell suggest a work around for this problem on Mac/gcc?
Thanks
--
Yogesh Kini

Nov 22 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Yogesh wrote:
Hi all,
I am using gcc 4.0 with Xcode 2.2 on Mac OS 10.4.3.
I am using two static lib's in my project, which in turn include zlib.
I get "multiple definition of symbol" Linker error.

While using msvc 7.0 linker flag "/FORCE:MULTIPLE" eliminates this
error.

Is there a similar flag for gcc?

or Can any one tell suggest a work around for this problem on Mac/gcc?
Thanks
--
Yogesh Kini


You should post this question on a gcc forum since it is not related to
standard C++. See the FAQ for some suggested newsgroups:

http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

Cheers! --M

Nov 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.