I've compiled and linked ios app that uses lib (libclang) that uses stat() with no errors. But i'm having runtime error:
LLVM code which raises error is... moreI've compiled and linked ios app that uses lib (libclang) that uses stat() with no errors. But i'm having runtime error:
LLVM code which raises error is (/Unix/Path.inc):
error_code status(const Twine &Path, file_status &Result) {
SmallString<128> PathStorage;
StringRef P = Path.toNullTerminatedStringRef(PathStorage);
struct stat Status;
int StatRet = ::stat(P.begin(), &Status); // failure here
return fillStatus(StatRet, Status, Result);
}
How was i able to link the app without having stat() in symbols? How can i fix/walk-around it? less