0
0

I just downloaded fmod 4.40.06 and created a simple sample app (Single View Application) in Xcode 4.3.2 for iPhone. I followed the instructions from Getting started with FMOD for iPhone.pdf and all compiles and links.

In target Build Settings I add the linker flag -ObjC to Other Linker Flags and now I get link errors with FMOD. I need to use the -ObjC linker flag because we will be using CorePlot_1.0 which requires it. In order to keep this simple and easily reproduced by anyone willing to help, I have not added any code or done anything to the new project other than adding FMOD and the -ObjC linker flag. I have used previous versions of FMOD with the -ObjC linker flag without problem.

Thanks for your help.

Undefined symbols for architecture armv7:
"__ZdlPv", referenced from:
__ZN4FMOD6ThreadD0Ev in libfmodex_iphoneos.a(fmod_thread.o)
__ZN4FMOD7SystemID0Ev in libfmodex_iphoneos.a(fmod_systemi.o)
__ZN4FMOD15OcclusionThreadD0Ev in libfmodex_iphoneos.a(fmod_geometry_mgr.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

"__ZdlPv", referenced from:
__ZN4FMOD6ThreadD0Ev in libfmodex_iphoneos.a(fmod_thread.o)
__ZN4FMOD7SystemID0Ev in libfmodex_iphoneos.a(fmod_systemi.o)
__ZN4FMOD15OcclusionThreadD0Ev in libfmodex_iphoneos.a(fmod_geometry_mgr.o)
Symbol(s) not found for architecture armv7
Linker command failed with exit code 1 (use -v to see invocation)

  • You must to post comments
0
0

Are you able to reproduce this problem with the provided examples? I have been unable to so far.

  • You must to post comments
0
0

I’m having a similar problem except I get:

ld: duplicate symbol FMOD::FMOD_ProfileCpu_Create() in fmod/lib/release/libfmodex_iphonesimulator.a(fmod_profile_cpu.o) and fmod/lib/debug/libfmodexL_iphonesimulator.a(fmod_profile_cpu.o) for architecture i386

Once i take -ObjC out it works fine.

Any ideas?

  • You must to post comments
0
0

Are you linking both libfmodex_iphonesimulator.a and libfmodexL_iphonesimulator.a? These are mutually exclusive, the ‘L’ version is the same as the other version except it contains logging information to help debugging.Generally link the ‘L’ version in debug and the non ‘L’ version for release.

  • You must to post comments
0
0

Thanks Mathew, that was it, i can’t believe i didn’t see it. I must be totally out of it.

Was kind of weird that it worked without the -ObjC flag though.

Thanks again,
Felix

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.