适用于x64的SQLite3.dll [英] SQLite3.dll for x64
问题描述
从下载的 sqlite.org/download 中,它们为预编译二进制文件提供了Windows (适用于x86和x64)。
因此,下载的是一个 .def 文件和一个 .dll 文件。
使用这两个文件,您可以创建 .lib 文件。
[命令:lib /def:yourfile.def /out:yourfile.lib]
From the download sqlite.org/download, they provide Precompiled Binaries for Windows for both x86 and x64. So, what gets downloaded is a .def file and a .dll file. Using this two files you can create the .lib file. [Command: lib /def:yourfile.def /out:yourfile.lib]
创建 .lib >文件并将其用作依赖项,对于x86来说一切正常。但是对于x64,Visual Studio显示错误:
On creating the .lib file and using it as a dependency, things are working fine for x86. But for x64, Visual Studio is showing the error:
是有人遇到这个问题吗?
Is anyone else facing this?
推荐答案
找出我要去哪里了。
在创建.lib文件时,我们应该使用以下命令:
lib /def:sqlite3.def / machine:X64 / out :sqlite3.lib
While creating the .lib file, we should be using the following command: lib /def:sqlite3.def /machine:X64 /out:sqlite3.lib
我之前跳过了/ machine:X64选项。
更好地了解命令提供的所有选项。
I was skipping the /machine:X64 option before. Better to see what are all the options provided by a command.
示例:
lib /?
输出将是:
usage: LIB [options] [files]
options:
/DEF[:filename]
/ERRORREPORT:{NONE|PROMPT|QUEUE|SEND}
/EXPORT:symbol
/EXTRACT:membername
/INCLUDE:symbol
/LIBPATH:dir
/LIST[:filename]
/LTCG
/MACHINE:{ARM|ARM64|EBC|X64|X86}
/NAME:filename
/NODEFAULTLIB[:library]
/NOLOGO
/OUT:filename
/REMOVE:membername
/SUBSYSTEM:{BOOT_APPLICATION|CONSOLE|EFI_APPLICATION|
EFI_BOOT_SERVICE_DRIVER|EFI_ROM|EFI_RUNTIME_DRIVER|
NATIVE|POSIX|WINDOWS|WINDOWSCE}[,#[.##]]
/VERBOSE
/WX[:NO]
这篇关于适用于x64的SQLite3.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!