Multiple Definition of Symbols

Y

Yogesh

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
 
M

mlimber

Yogesh said:
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

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-lite/how-to-post.html#faq-5.9

Cheers! --M
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,685
Members
48,796
Latest member
Greg L.

Latest Threads

Top