Skip to content

sqlite mising lib issue in tutorial for Windows #547

@AlexMonson

Description

@AlexMonson

On this line of the tutorial:

rusqlite = { version = "0.32.1", optional = true } # <--- add rusqlite

Users developing on Windows (and maybe other platforms?) may get compilation errors like LINK : fatal error LNK1181: cannot open input file 'sqlite3.lib as sqlite isn't installed on the system. The fix is to add features = ["bundled"] in the Cargo dependencies like:

rusqlite = { version = "0.37.0", features = ["bundled"], optional = true }

I found the solution here on Stack Overflow when I encountered this issue myself. There are alternative solutions in that SO but adding the feature is the simpliest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions