Linker refuses to link my dylib? Why?
Linker refuses to link my dylib? Why?
- Subject: Linker refuses to link my dylib? Why?
- From: "Theodore H. Smith" <email@hidden>
- Date: Wed, 14 Feb 2007 15:36:12 +0000
I'm being told that I can't link my product, for some odd reason I
have no clue about. I've no idea where these __TEXT or __DATA
sections come from and to be honest I don't really want to know about
them ;) All I want to do is know about C++ and build a library.
Anyhow I guess I will have to learn what these silly linker flags are
about.
So why am I being told these linker errors?
I got the linker errors below and my customised settings below.
cd /Users/theodore/Programming/Making/ElfData/Source
/usr/bin/g++-4.0 -o /Users/theodore/Programming/Making/ElfData/
Source/build/ElfData.build/Deployment/ElfData.build/Objects-normal/
ppc/libElfData.dylib -LElfData/Build\ Resources/Mac\ Carbon\ Mach-O\
Universal -FElfData/Build\ Resources/Mac\ Carbon\ Mach-O\ Universal -
filelist /Users/theodore/Programming/Making/ElfData/Source/build/
ElfData.build/Deployment/ElfData.build/Objects-normal/ppc/
ElfData.LinkFileList -framework Carbon -arch ppc -prebind -Wl,-
single_module -compatibility_version 1 -current_version 1 -
install_name /usr/local/lib/libElfData.dylib -Wl,-Y,1455 -dynamiclib -
mmacosx-version-min=10.3 -Wl,-dead_strip -isysroot /Developer/SDKs/
MacOSX10.3.9.sdk
ld: warning prebinding disabled because (__TEXT segment (address =
0x0 size = 0x2b000) of /Users/theodore/Programming/Making/ElfData/
Source/build/ElfData.build/Deployment/ElfData.build/Objects-normal/
ppc/libElfData.dylib overlaps with __TEXT segment (address = 0x0 size
= 0xc000) of /usr/lib/libgcc_s.1.dylib
ld: warning prebinding disabled because (__TEXT segment (address =
0x0 size = 0x2b000) of /Users/theodore/Programming/Making/ElfData/
Source/build/ElfData.build/Deployment/ElfData.build/Objects-normal/
ppc/libElfData.dylib overlaps with __DATA segment (address = 0xc000
size = 0x1000) of /usr/lib/libgcc_s.1.dylib
ld: warning prebinding disabled because (__TEXT segment (address =
0x0 size = 0x2b000) of /Users/theodore/Programming/Making/ElfData/
Source/build/ElfData.build/Deployment/ElfData.build/Objects-normal/
ppc/libElfData.dylib overlaps with __LINKEDIT segment (address =
0xd000 size = 0x2460) of /usr/lib/libgcc_s.1.dylib
ld: /Users/theodore/Programming/Making/ElfData/Source/build/
ElfData.build/Deployment/ElfData.build/Objects-normal/ppc/ED_MSR.o
has local relocation entries in non-writable section (__TEXT,__text)
/usr/bin/libtool: internal link edit command failed
ld: warning prebinding disabled because (__TEXT segment (address =
0x0 size = 0x2b000) of /Users/theodore/Programming/Making/ElfData/
Source/build/ElfData.build/Deployment/ElfData.build/Objects-normal/
ppc/libElfData.dylib overlaps with __TEXT segment (address = 0x0 size
= 0xc000) of /usr/lib/libgcc_s.1.dylib
ld: warning prebinding disabled because (__TEXT segment (address =
0x0 size = 0x2b000) of /Users/theodore/Programming/Making/ElfData/
Source/build/ElfData.build/Deployment/ElfData.build/Objects-normal/
ppc/libElfData.dylib overlaps with __DATA segment (address = 0xc000
size = 0x1000) of /usr/lib/libgcc_s.1.dylib
ld: warning prebinding disabled because (__TEXT segment (address =
0x0 size = 0x2b000) of /Users/theodore/Programming/Making/ElfData/
Source/build/ElfData.build/Deployment/ElfData.build/Objects-normal/
ppc/libElfData.dylib overlaps with __LINKEDIT segment (address =
0xd000 size = 0x2460) of /usr/lib/libgcc_s.1.dylib
ld: /Users/theodore/Programming/Making/ElfData/Source/build/
ElfData.build/Deployment/ElfData.build/Objects-normal/ppc/ED_MSR.o
has local relocation entries in non-writable section (__TEXT,__text)
/usr/bin/libtool: internal link edit command failed
ARCHS = ppc i386
SDKROOT = /Developer/SDKs/MacOSX10.3.9.sdk
CONFIGURATION_BUILD_DIR = ElfData/Build Resources/Mac Carbon Mach-O
Universal
ZERO_LINK = NO
DEAD_CODE_STRIPPING = YES
PRODUCT_NAME = ElfData
EXECUTABLE_PREFIX = lib
STRIP_INSTALLED_PRODUCT = NO
COPY_PHASE_STRIP = NO
GCC_PREFIX_HEADER = ElfDataSrc/ED_CompileMachO.h
GCC_GENERATE_DEBUGGING_SYMBOLS = NO
GCC_MODEL_TUNING = G5
GCC_ENABLE_FIX_AND_CONTINUE = NO
MACOSX_DEPLOYMENT_TARGET_i386 = 10.4
SDKROOT_i386 = /Developer/SDKs/MacOSX10.4u.sdk
GCC_ENABLE_CPP_EXCEPTIONS = NO
GCC_ENABLE_CPP_RTTI = NO
GCC_ONE_BYTE_BOOL = YES
GCC_ENABLE_SYMBOL_SEPARATION = NO
GCC_OPTIMIZATION_LEVEL = 3
GCC_DYNAMIC_NO_PIC = YES
GCC_UNROLL_LOOPS = YES
GCC_FAST_MATH = YES
GCC_MODEL_TUNING = G5
GCC_AUTO_VECTORIZATION = YES
GCC_ENABLE_SSE3_EXTENSIONS = YES
GCC_THREADSAFE_STATICS = NO
_______________________________________________
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