Re: getting problem while moving from Xcode 2.x to Xcode 3.x
Re: getting problem while moving from Xcode 2.x to Xcode 3.x
- Subject: Re: getting problem while moving from Xcode 2.x to Xcode 3.x
- From: Jean-Daniel Dupas <email@hidden>
- Date: Thu, 15 Jan 2009 10:03:13 +0100
I don't have the 10.4u SDK provided with Xcode 2.2 as I stoped to use
it since the 2.2.1 release. So I don't know if this problem was
already present.
But, in Xcode 3.1.2, if you compare the getsect.h from the 10.4u and
from the 10.5 SDKs, you can see that the 10.5 version contains a
extern "C" declaration and not the 10.4 version.
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
…
#if __cplusplus
}
#endif /* __cplusplus */
As you using this file from a c++ file, that what cause you the
problem. If you don't want to change the SDK, you can workaround it by
incuding the header into an extern "C" section
extern "C" {
#include <mach-o/getsect.h>
}
Le 15 janv. 09 à 08:01, Arnab Ganguly a écrit :
Hi ,
Thanks for the info.But this code base uses 10.4 SDK on Xcode 2.2
and it works fine.So if I upgrade to Xcode 3..x we need to change
the SDK version also?
I tried it out but it only increased the errors.
Thanks
-A
This is a bug in the 10.4 SDK header:
There is no extern"C" declaration, and so your symbol is mangle and
the linker does not find it.
You can switch to the 10.5 SDK. This will solve your problem.
As long as you define the deployment target as 10.4, it should not
prevent your software to run on Tiger.
Le 14 janv. 09 à 18:31, Arnab Ganguly a écrit :
Hi All,
Below is the build transcript as asked for.Let me know if more
details is required.
Building target "Zlib" of project "Talkback" with configuration
"Debug"
Checking Dependencies
Building target "Common" of project "Talkback" with configuration
"Debug"
Checking Dependencies
Building target "ExceptionStub" of project "Talkback" with
configuration "Debug"
Checking Dependencies
Building target "ExceptionFilter" of project "Talkback" with
configuration "Debug"
Checking Dependencies
Ld /Users/bdcuser/arnab/iphone-dev/talkback/talkback/talkback/src/
Client/MacOSX/Xcode/build/Talkback.build/Debug/ExceptionFilter.build/
Objects-normal/ppc/talkback.dylib normal ppc
cd /Users/bdcuser/arnab/iphone-dev/talkback/talkback/talkback/
src/Client/MacOSX/Xcode
/Developer/iphone-installs/usr/bin/g++-4.0 -arch ppc -dynamiclib
-isysroot /Developer/iphone-installs/SDKs/MacOSX10.4u.sdk -L/Users/
bdcuser/arnab/iphone-dev/talkback/talkback/talkback/src/Client/
MacOSX/Xcode/build/Debug -F/Users/bdcuser/arnab/iphone-dev/talkback/
talkback/talkback/src/Client/MacOSX/Xcode/build/Debug -F/Developer/
iphone-installs/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks -
filelist /Users/bdcuser/arnab/iphone-dev/talkback/talkback/talkback/
src/Client/MacOSX/Xcode/build/Talkback.build/Debug/
ExceptionFilter.build/Objects-normal/ppc/talkback.LinkFileList -
exported_symbols_list ExceptionFilter.exported -install_name /usr/
local/lib/talkback.dylib -mmacosx-version-min=10.4 -framework
ApplicationServices -lCommon -Wl,-single_module -
compatibility_version 1 -current_version 1 -o /Users/bdcuser/arnab/
iphone-dev/talkback/talkback/talkback/src/Client/MacOSX/Xcode/build/
Talkback.build/Debug/ExceptionFilter.build/Objects-normal/ppc/
talkback.dylib
ld warning: ignoring ___FCIncrementCounter.eh in export list
ld warning: ignoring ___FCClearKeys.eh in export list
ld warning: ignoring ___FCAssert.eh in export list
ld warning: ignoring ___FCDeleteKey.eh in export list
ld warning: ignoring ___FCCreateCounter.eh in export list
ld warning: ignoring ___FCTraceParam.eh in export list
ld warning: ignoring ___FCClearCounters.eh in export list
ld warning: ignoring ___FCDecrementCounter.eh in export list
ld warning: ignoring ___FCCreateKey.eh in export list
ld warning: ignoring ___FCAddIntToKey.eh in export list
ld warning: ignoring ___FCAddDateToKey.eh in export list
ld warning: ignoring ___FCTerminate.eh in export list
ld warning: ignoring ___FCSetCounter.eh in export list
ld warning: ignoring ___FCAddDataToKey.eh in export list
ld warning: ignoring ___FCAssert2.eh in export list
ld warning: ignoring ___FCHeartbeatTimer.eh in export list
ld warning: ignoring ___FCRegisterMemory.eh in export list
ld warning: ignoring ___FCStartTimer.eh in export list
ld warning: ignoring ___FCAssertParam.eh in export list
ld warning: ignoring ___FCEndTimer.eh in export list
ld warning: ignoring ___FCTrace.eh in export list
ld warning: ignoring ___FCInitializeManifest.eh in export list
ld warning: ignoring ___FCSetDisplay.eh in export list
ld warning: ignoring ___FCAssertParam2.eh in export list
ld warning: ignoring ___FCTrigger.eh in export list
ld warning: ignoring ___FCInitialize.eh in export list
ld warning: ignoring ___FCFlushPersistentCounters.eh in export list
ld warning: ignoring ___FCCreatePersistentCounter.eh in export list
ld warning: ignoring ___FCClearKey.eh in export list
ld warning: ignoring ___FCCreatePersistentKey.eh in export list
ld warning: ignoring ___FCLibraryVersion.eh in export list
ld warning: ignoring ___FCUnregisterMemory.eh in export list
ld warning: ignoring ___FCAddStringToKey.eh in export list
ld warning: ignoring ___FCTrigger2.eh in export list
ld warning: ignoring ___FCGetCounter.eh in export list
Undefined symbols:
"get_end()", referenced from:
spResourceLimitsCollector::Collect(BlackBox&,
spKeyDataStream*, SPIRAL_TRIGGER_CONTEXT*) in ResourceLimitsC.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
_______________________________________________
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
_______________________________________________
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