having trouble debugging a linker error
having trouble debugging a linker error
- Subject: having trouble debugging a linker error
- From: "Tim Conkling" <email@hidden>
- Date: Wed, 7 Nov 2007 18:18:17 -0800
OK, so here's my situation:
I have an application that links to a custom-built OpenAL library
(custom built in the sense that it's not the OpenAL framework that's
part of 10.4 and up, because we're targeting 10.3.9, not custom built
in the sense that the code has been modified from the version on the
OpenAL svn server).
Everything works fine in the following configurations:
- i386, GCC 4, 10.4u SDK
- PPC, GCC 4, 10.4u SDK
- PPC, GCC 3.3, 10.3.9 SDK
But this configuration:
- PPC, GCC 4, 10.3.9 SDK
Gives me the following two link errors:
cd /Users/tconklin/Desktop/depot/projects/Skeleton/_mainline
/Developer/usr/bin/g++-4.0 -o
/Users/tconklin/Desktop/depot/projects/Skeleton/_mainline/build/Skeleton.build/Release/Skeleton.build/Objects-normal/ppc/Skeleton
-L/Users/tconklin/Desktop/depot/projects/Skeleton/_mainline/build/Release
-F/Users/tconklin/Desktop/depot/projects/Skeleton/_mainline/build/Release
-filelist /Users/tconklin/Desktop/depot/projects/Skeleton/_mainline/build/Skeleton.build/Release/Skeleton.build/Objects-normal/ppc/Skeleton.LinkFileList
/Users/tconklin/Desktop/depot/projects/Orbital/PlatformLibs/Audio/OpenAL/build/Release/libOpenALAudioPlatform.a
/Users/tconklin/Desktop/depot/projects/Orbital/_mainline/build/Release/lib2DEngine.a
-arch ppc -mmacosx-version-min=10.3 -lz -framework Carbon -framework
AGL -framework OpenGL -framework AudioUnit -framework AudioToolbox
-framework CoreAudio -isysroot /Developer/SDKs/MacOSX10.3.9.sdk
Undefined symbols:
"mach_timebase_info(mach_timebase_info*)", referenced from:
CAHostTimeBase::Initialize() in
libOpenALAudioPlatform.a(CAHostTimeBase.o)
"mach_absolute_time()", referenced from:
CAHostTimeBase::GetCurrentTimeInNanos() in
libOpenALAudioPlatform.a(CAGuard.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
"mach_timebase_info(mach_timebase_info*)", referenced from:
CAHostTimeBase::Initialize() in
libOpenALAudioPlatform.a(CAHostTimeBase.o)
"mach_absolute_time()", referenced from:
CAHostTimeBase::GetCurrentTimeInNanos() in
libOpenALAudioPlatform.a(CAGuard.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
So mach_timebase_info() and mach_absolute_time() are mysteriously
failing to be linked.
Any ideas?
Thanks,
Tim
_______________________________________________
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