You've got your finger on it. It suffices to get<code> #pragma function(ceil, floor) </code>into the sqlite3.c compilation before the address of either "function" is taken. Then, whether SQLITE_DISABLE_INTRINSIC is #define'd or not, those 3 errors vanish.