I am using a 3rd party library and got the link error below in xcode4 with ios5. Can someone tell me how to fix this kinda error? Thanks a lot!!
Undefined symbols for architecture i386:
"std::string::assign(char const*, unsigned long)", referenced from:
meatloaf::boundaries::boundaries(std::vector<meatloaf::scanline, std::allocator<meatloaf::scanline> >) in libScannerKit.a(boundaries.o)
meatloaf::boundaries::find_boundaries() in libScannerKit.a(boundaries.o)
"std::string::_Rep::_S_empty_rep_storage", referenced from:
meatloaf::boundaries::boundaries() in libScannerKit.a(boundaries.o)
Thanks everyone for the help, really appreciated! I finally found out i need to set "Other linker flags" as "-all_load -lstdc++" for both debug and release. In project setting's "Build Settings/Linking/Other Linker Flags"