iOS Swift Objective-C with bridging header sqlite3 sqlite3_create_function error: ambiguous without more context -
when call sqlite3_create_function receiving error. xcode "hint" problem indicates "&distancefunc" problem coming in at. here code:
var mydb : sqlite3_file var sqlitedatabaseptr = sqlite3_open("septastopsdb", nil) sqlite3_create_function(sqlitedatabaseptr, "distance", 4, sqlite_utf8, nil, &distancefunc, nil, nil);
"type of expression ambiguous without more context"
i grateful in understanding how can correctly place code here.
and function coming from? creating swift project uses sqlite3. have created bridging header file objective c , added sqlite3 library project build settings. see autocomplete sqlite c functions in swift know bridge working.
i know there "fully swift" solutions sqlite3 need functions dylib (such sqlite3_create_function can create function cos )
the basic outline of sqlite function here @ link
Comments
Post a Comment