Skip to content

Undeclared identifier compile error from Objective-C #100

Description

@matthewrfennell

Calling some functions, such as sqlite3_libversion(), from Objective-C causes the compile error "Use of undeclared identifier 'sqlite3_api'". See this minimal test. Swift code calling these functions compile fine.

As a workaround, #defineing either SQLITE_CORE or SQLITE_OMIT_LOAD_EXTENSIONS in sqlite3ext.h removes this error. This suggests that the SQLITE_CORE definition in Package.swift is somehow not being handled correctly when called through Objective-C.

I'll continue looking at this, but any ideas of how this is happening only in Objective-C or how to narrow down the investigation are appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions