简体   繁体   English

Visual C ++如何在不使用sqlite3.dll的情况下使用sqlite3

[英]Visual c++ How to sqlite3 without sqlite3.dll use

How to sqlite3 dll without use? 如何不使用sqlite3 dll? I'm imported sqlite3.h and sqlite3.lib, and error sqlite3.dll not found. 我导入了sqlite3.h和sqlite3.lib,找不到错误sqlite3.dll。 Need run without sqlite3.dll. 需要在没有sqlite3.dll的情况下运行。

This is not how it works. 这不是它的工作方式。 If the .lib is compiled to be dynamically linked then it just exports the list of symbols available inside the dll but the code still resides inside the dll. 如果.lib被编译为可动态链接,则它仅导出dll内部可用的符号列表,但代码仍驻留在dll内部。

If you want to avoid using dll, you need a static version of the library, I don't know if it's already provided by sqlite, otherwise you need to compile it yourself, this could help you. 如果要避免使用dll,则需要一个静态版本的库,我不知道它是否已由sqlite提供,否则您需要自己编译, 可能会对您有所帮助。

As far as I know sqlite3 is a single source file. 据我所知,sqlite3是单个源文件。 Just add it to your build and you should be golden. 只需将其添加到您的构建中,您就应该是黄金了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM