Re: Choosing cc optimization level causes ld to give illegal reference to CoreAudio library....
Re: Choosing cc optimization level causes ld to give illegal reference to CoreAudio library....
- Subject: Re: Choosing cc optimization level causes ld to give illegal reference to CoreAudio library....
- From: Eric Albert <email@hidden>
- Date: Mon, 15 Nov 2004 15:00:55 -0800
On Nov 15, 2004, at 12:55 PM, Rob Frohne wrote:
When I remove the -O3 or change it to -O0, -O1, or -O2, I get this error, but not when I leave it at -O3.
<x-tad-smaller>
ld: audio_device.o illegal reference to symbol: _AudioDeviceSetProperty defined in indirectly referenced dynamic library /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
</x-tad-smaller>
Any ideas why a compiler optimization will cause ld to have this type of difficulty?
I'm not sure why your compiler flags would affect this, but the error is telling you that you need to add the CoreAudio framework to your target.
It's possible that when building with -O3 the compiler is optimizing away your call to AudioDeviceSetProperty and therefore doesn't need to reference any symbols from the CoreAudio framework.
Hope this helps,
Eric
_______________________________________________
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