4 ms·
But clang did not treat it as an error when I commented the #include line. I have no idea if it was actually dynamically linked.
by ttflee 12y ago
But clang did not treat it as an error when I commented the #include line. I have no idea if it was actually dynamically linked.
- _wmd 12y agoIncludes don't control linking, and traditional C did not require function prototypes, so most compilers (in non-C++ mode at least) will happily compile calls to unknown functions, it just assumes a default signature.
- ttflee 12y agoI know that and mach_* are supposed to be dynamically loaded. But what I failed to get is to reproduce the kernel panic, not to build and run on my iPhone 5. By now that piece of code could run but only result in normal crash, not kernel panic.