RE: More link errors
RE: More link errors
- Subject: RE: More link errors
- From: "Mikael Hillborg" <email@hidden>
- Date: Wed, 5 May 2004 14:02:39 +0200
To those who are interested, this bug doesn't apply to frameworks only, but
I've noticed that it can happen to files in general, which are added to the
project in XCode 1.1. If you get link errors, which indicate that an
implementation (.cpp) file is missing, then try deleting the reference
from the project and add it again. Or if it's a framework, then try
adding the frameworks using the link flags syntax.
Don't know if it's been fixed in XCode 1.2.
Cleaning all targets and even deleting the build directory won't help.
Mikael
>
-----Original Message-----
>
From: Mikael Hillborg [mailto:email@hidden]
>
Sent: den 4 maj 2004 22:52
>
To: Marc Poirier
>
Cc: email@hidden
>
Subject: RE: More link errors
>
>
>
Hey, adding the framework manually in the linker flags window solved it!
>
Strange. The frameworks were dragged to the project as in the sample
>
project but still weren't linked. Perhaps a bug in XCode 1.1?
>
I noticed 1.2 was ~650 MB so it'll have to wait.
>
>
Cheers
>
Mikael
>
>
> -----Original Message-----
>
> From: Marc Poirier [mailto:email@hidden]
>
> Sent: den 4 maj 2004 22:28
>
> To: Mikael Hillborg
>
> Cc: email@hidden
>
> Subject: RE: More link errors
>
>
>
>
>
> Huh, well than it's pretty weird that you're getting those
>
linker errors,
>
> cuz that's where they are implemented. I don't know, I've gotten those
>
> errors before, when I've forgotten to include
>
AudioToolbox.framework, and
>
> then I go and include it and then the errors go away. What IDE are you
>
> using? If Project Builder or Xcode, you could try manually adding the
>
> linker flag:
>
> -framework AudioToolbox
>
> I think that's the syntax, you can man ld to double check...
>
>
>
> But note that framework libraries are dynamically linked. That way the
>
> version of the framework living on the user's system is what is
>
used for
>
> the implementation code at runtime rather than the version that
>
> was living
>
> on your system when you built your software, so that then, when Apple
>
> releases updates to those frameworks, all software inherits the
>
> improvements right away without being rebuilt.
>
>
>
> Marc
>
>
>
>
>
>
>
> On Tue, 4 May 2004, Mikael Hillborg wrote:
>
>
>
> > It's included.
>
> >
>
> > Where are these defined really? Reading the .h files in the
>
> > AudioToolbox framework, they are declared as *extern* only.
>
> > So where are they defined and implemented?
>
> >
>
> > M
>
> >
>
> > > -----Original Message-----
>
> > > From: Marc Poirier [mailto:email@hidden]
>
> > > Sent: den 4 maj 2004 21:32
>
> > > To: Mikael Hillborg
>
> > > Cc: email@hidden
>
> > > Subject: Re: More link errors
>
> > >
>
> > >
>
> > > You need to include the AudioToolbox.framework in your project.
>
> > > The framework includes the headers and the libraries.
>
> > >
>
> > > Marc
>
> > >
>
> > >
>
> > >
>
> > > On Tue, 4 May 2004, Mikael Hillborg wrote:
>
> > >
>
> > > > As far as I can see the latest SDK doesn't include
>
> > > > any MusicDevice sample, so I changed the effect sample
>
> > > > into a music device with a carbon view. But I get a less
>
> > > > pleasant amount of link errors, e.g. these
>
> > > >
>
> > > > _AUListenerCreate
>
> > > > _AUListenerDispose
>
> > > > _AUParameterListenerNotify
>
> > > > _AUListenerAddParameter
>
> > > > _AUListenerRemoveParameter
>
> > > > _AUParameterValueFromLinear
>
> > > > _AUParameterValueToLinear
>
> > > >
>
> > > > when trying to convert the sample effect. I inherit
>
> > > > the music device base class etc as usual.
>
> > > >
>
> > > > They are declared in AudioToolbox.framework and
>
> > > > AudioUnitUtilities.h, but they're declated as extern.
>
> > > > Where are the actual implementations?
>
> > > >
>
> > > > M
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.