linker - Linking failure with a MonoTouch native library binding -
i creating native library binding wikitude sdk.
the monotouch app fails linking:
undefined symbols architecture armv7:
"std::__1::basic_string, std::__1::allocator >::find_last_of(char const*, unsigned long, unsigned long) const", referenced from: wtunzip::unzipfileto(char const*, bool)in wikitudesdk.a(wtunzip.o) ...
my linkwith:
[assembly: linkwith ("wikitudesdk.a", linktarget.armv7, frameworks = "corevideo security systemconfiguration coremedia avfoundation cfnetwork corelocation coremotion mediaplayer opengles quartzcore coregraphics", forceload = true, linkerflags = "-lsqlite3.0 -objc", iscxx = true)]
i have admit new monotouch/ios world, trying head out of water.
what should app link?
i figured needed add libc++ in linkwith. new linkwith looks this:
[assembly: linkwith ("wikitudesdk.a", linktarget.armv7, frameworks = "corevideo security systemconfiguration coremedia avfoundation cfnetwork corelocation coremotion mediaplayer opengles quartzcore coregraphics", forceload = true, linkerflags = "-lsqlite3.0 -objc -lc++", iscxx = true)]
hopefully can others.
Comments
Post a Comment