You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
855 B
Markdown
28 lines
855 B
Markdown
|
3 years ago
|
# Sqlite library (x64)
|
||
|
|
|
||
|
|
To build lib from def file
|
||
|
|
|
||
|
|
Copy header file from sqlite source
|
||
|
|
|
||
|
|
|
||
|
|
```
|
||
|
|
PS C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.34.31921\bin\Hostx64\x64> .\lib /DEF:C:\tools\sqlite-dll-win64-x64-3390400/sqlite3.def /OUT:C:\tools\sqlite-dll-win64-x64-3390400/sqlite3.lib
|
||
|
|
|
||
|
|
```
|
||
|
|
|
||
|
|
```
|
||
|
|
:: Dump SQLite.DLL exports
|
||
|
|
|
||
|
|
set DUMPBIN="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x86\dumpbin.exe"
|
||
|
|
set LIBX="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x86\lib.exe"
|
||
|
|
set SQL="C:\SQLite\sqlite3.dll"
|
||
|
|
set DEF="C:\SQLite\sqlite3.def"
|
||
|
|
set LIB="C:\SQLite\sqlite3.lib"
|
||
|
|
|
||
|
|
:: [1] run dumpbin
|
||
|
|
%DUMPBIN% /EXPORTS /NOLOGO /OUT:%DEF% %SQL%
|
||
|
|
|
||
|
|
:: [2] manually edit .DEF file to look proper
|
||
|
|
:: [3] run LIB
|
||
|
|
%LIBX% /DEF:%DEF% /OUT:%LIB%
|
||
|
|
```
|