简体   繁体   中英

Why do I need a DLL to use sqlite3?

I have a program in C. I need to use a SQLite library to read data from a database.

When I include sqlite3.h to my source file I get unresolved symbol errors on sqlite3 functions.

If I add lib file as library I don't get any error but program requires sqlite3.dll to run.

I already tried to play with compiler settings but nothing changed.

SQLite is written in C and my program is also C. Why do I need a DLL file to use SQLite?

How can I remove the DLL dependency.

I'm using MCVS2015 community edition IDE.

推荐的编译SQLite的方法是下载合并源代码文件( sqlite3.c ),并将其添加到您的项目中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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