Re: multiple definitions errors
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