• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Multiple definition errors!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Multiple definition errors!


  • Subject: Multiple definition errors!
  • From: Mike Linden <email@hidden>
  • Date: Mon, 20 Feb 2006 16:18:48 -0500

Had the wrong return email on this, not sure if it was sent...



I'm hoping someone might have seen this problem and can give me hand.

I have two  frameworks compiled in Code Warrior with BSD libs.

One framework has a higher level of routines, so it includes the the other
one for interfaces, etc.


First, this framework seems to work fine when compile in various CW
projects, but when this framework (only one is linked in) is used in
Xcode(2.2) I get multiple define errors.

I've isolated to what I believe to be the root cause of the problem, but as
of yet can figure out how to get rid of it. It seems that a 'std' stream
call "ostringstream" is causing the errors to generate. If I eliminate this
class the error goes away from where it was associated (by looking at the
.xmaps of the frameworks) and moves to a different part of the code where
"ostringstream" is used. The problem is that "ostringstream" is used through
out all of the framework and would be lengthy to remove as these are large
projects.

Included is the errors generated, as you can see I have turned on the switch
for suppressing multiple errors, which removed some, but does not remove
this one.

The error being:
multiple definitions of symbol __ZZNSt8ios_base5clearENS_7iostateEEs


Thanks in advanced for any help.

Mike Linden




Checking Dependencies
Ld
/Development/Projects/Libraries/ZMessage/JBXJNI/JBXJNI/build/Release/libJBXJ
NI.jnilib normal ppc
    cd /Development/Projects/Libraries/ZMessage/JBXJNI/JBXJNI
    /usr/bin/gcc-4.0 -o
/Development/Projects/Libraries/ZMessage/JBXJNI/JBXJNI/build/Release/libJBXJ
NI.jnilib
-L/Development/Projects/Libraries/ZMessage/JBXJNI/JBXJNI/build/Release
-F/Development/Projects/Libraries/ZMessage/JBXJNI/JBXJNI/build/Release
-F/Library/Frameworks -filelist
/Development/Projects/Libraries/ZMessage/JBXJNI/JBXJNI/build/JBXJNI.build/Re
lease/JNILib.build/Objects-normal/ppc/JBXJNI.LinkFileList -framework JavaVM
-framework HarrisBaseviewDomain -arch ppc -Wl,-single_module
-compatibility_version 1 -current_version 1 -install_name
/usr/local/lib/libJBXJNI.jnilib -dynamiclib -flat_namespace
-multiply_defined suppress
ld: multiple definitions of symbol __ZZNSt8ios_base5clearENS_7iostateEEs
/Library/Frameworks/HarrisBaseviewDomain.framework/HarrisBaseviewDomain(sing
le module) definition of __ZZNSt8ios_base5clearENS_7iostateEEs
/Library/Frameworks/CommonLib.framework/Versions/A/CommonLib(single module)
definition of __ZZNSt8ios_base5clearENS_7iostateEEs
/usr/bin/libtool: internal link edit command failed


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Globals Browser
  • Next by Date: Re: Globals Browser
  • Previous by thread: Re: xcode 2.x: How to link a framework to a specific build configuration?
  • Next by thread: Waiting... Waiting... Waiting...
  • Index(es):
    • Date
    • Thread