How to link a SQlite Extension Source File into Xcode for iPhone?
Posted
by crunchyt
on Stack Overflow
See other posts from Stack Overflow
or by crunchyt
Published on 2010-02-20T18:18:19Z
Indexed on
2010/03/20
18:11 UTC
Read the original article
Hit count: 507
I use a statically linked library for Sqlite in an iPhone Xcode project. I am now trying to include a .C extension to Sqlite in this project. However, I am having trouble making the Sqlite in the build SEE the extension.
The statically linked Sqlite library works fine. Also the .C extension works on my desktop, and builds fine as a statically linked library in Xcode. However, the custom functions it defines are missing when called.
For example, I load the extension as so with no errors.
SELECT load_extension('extension_name.so');
But when I try to call a function defined in the extension, I get this message
DB Error: 1 "no such function: custom_function"
Does anyone know much about linking a Sqlite extension into an Xcode project?
© Stack Overflow or respective owner