PDA

View Full Version : XCode linker error



Etek
11-14-2010, 11:11 AM
Hello,

I'm using your older project framework, and I managed to get sound working on Windows with fmod, however, not on Mac.

I get this linker error when trying to build


Undefined symbols:
"_OBJC_CLASS_$_AVAudioPlayer", referenced from:
objc-class-ref-to-AVAudioPlayer in AudioManagerOS.o
"AudioManagerOS::soundCount", referenced from:
__ZN14AudioManagerOS10soundCountE$non_lazy_ptr in AudioManagerOS.o
(maybe you meant: __ZN14AudioManagerOS10soundCountE$non_lazy_ptr)

What exactly did I miss?

Thank you

Etek
11-14-2010, 11:45 AM
I managed to solve the first issue by including the AVFoundation framework.

The issue remaining is

Undefined symbols:
"AudioManagerOS::soundCount", referenced from:
__ZN14AudioManagerOS10soundCountE$non_lazy_ptr in AudioManagerOS.o
(maybe you meant: __ZN14AudioManagerOS10soundCountE$non_lazy_ptr)
ld: symbol(s) not found
:crazy:

Etek
11-14-2010, 12:05 PM
Ups, nevermind, that soundCount is my own. :ninja:

Seth
11-14-2010, 10:54 PM
Glad you got it going! AVFoundation should already be included in the iOS examples in the current svn and compile out of the box, if anyone has troubles let me know.