• 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
Re: multiple definitions errors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multiple definitions errors


  • Subject: Re: multiple definitions errors
  • From: Dan Korn <email@hidden>
  • Date: Thu, 26 Jun 2008 11:44:45 -0500

Okay, I think I might have a clue about what's going wrong. It seems that I'm not actually building a dynamic library after all! Even though I definitely have the "Mach-O Type" set to "Dynamic Library" in the Target, and I have this in my project.pbxproj file:

MACH_O_TYPE = mh_dylib

I have this in my build command:

Libtool "/Projects/FusionPro-mainline/FusionProWorkspace/ FusionProMac/FusionPro/FPUnicodeUI/build/Debug/FPUnicodeUI.build/ Default/FPUnicodeUI Debug.build/Objects-normal/ppc/ libfpunicodeui_macho_d.lib" normal ppc
cd /Projects/FusionPro-mainline/FusionProWorkspace/FusionProMac/ FusionPro/FPUnicodeUI
setenv MACOSX_DEPLOYMENT_TARGET 10.3
/Xcode2.5/usr/bin/libtool -static -arch_only ppc -o /Projects/ FusionPro-
<snip>

Note the "-static" flag.

If I change the "Mach-O Type" setting and build again, nothing gets rebuilt at all. If I do a Clean, change the setting and rebuild, even if I change it to "Executable," it still builds the static library again.

So, what do I have to do to get Xcode to pass the "-dynamic" flag to Libtool to actually make a dynamic library?

Thanks,
Dan

_______________________________________________
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


  • Follow-Ups:
    • Re: multiple definitions errors
      • From: Jean-Daniel Dupas <email@hidden>
References: 
 >multiple definitions errors (From: Dan Korn <email@hidden>)
 >Re: multiple definitions errors (From: Dan Korn <email@hidden>)

  • Prev by Date: Re: Chicken & egg situation
  • Next by Date: Interface Builder - Large Fonts
  • Previous by thread: Re: multiple definitions errors
  • Next by thread: Re: multiple definitions errors
  • Index(es):
    • Date
    • Thread