在.mm里,改成:
#ifndef SPRINGBOARDSERVICES_H_
extern "C" int SBSLaunchApplicationWithIdentifier(CFStringRef identifier, Boolean suspended);
extern "C" CFStringRef SBSApplicationLaunchingErrorString(int error);
#endif
然后再编译试试
在.mm里,改成:
#ifndef SPRINGBOARDSERVICES_H_
extern "C" int SBSLaunchApplicationWithIdentifier(CFStringRef identifier, Boolean suspended);
extern "C" CFStringRef SBSApplicationLaunchingErrorString(int error);
#endif
然后再编译试试