Re: multiple definitions errors
Re: multiple definitions errors
- Subject: Re: multiple definitions errors
- From: Jean-Daniel Dupas <email@hidden>
- Date: Thu, 26 Jun 2008 19:21:35 +0200
Le 26 juin 08 à 18:44, Dan Korn a écrit :
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
Create a "dynamic library" target instead of the "static library"
target that was previously created. There are some settings defined by
the target type.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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