Windows的SQLite静态库 - wx

debug和release版

2026-02-27

Written by: tdtc

debug:ud, release:u

wxMsw

编译

choose: Release and Win32

Build Solution

Copy vc_lib to the lib directory of wxSqlite and rename it to vc14x_lib.

wxSqlite

C:/wxsqlite3-4.11

Unzip wxWidgets-3.2.9_Headers.7z and cut it to the root directory.

wx_setup

build/wx_setup.props

  <PropertyGroup Label="UserMacros">
    <IncludePath>C:\wxsqlite3-4.11\lib\vc14x_lib\mswu;$(IncludePath)</IncludePath>
  </PropertyGroup>
  <PropertyGroup Label="UserMacros">
    <IncludePath>C:\wxsqlite3-4.11\lib\vc14x_lib\mswud;$(IncludePath)</IncludePath>
  </PropertyGroup>

Then open C:/wxsqlite3-4.11/build/wxsqlite3_vc17.sln

Lnk1104

cannot open file 'wxbase32u.lib'
project: minimal and treeview

解决办法:

VC++ Directories -> Library Directories
C:\wxsqlite3-4.11\lib\vc14x_lib

Ref