SQLite compiler errors

我遇见的错误和这个一模一样

最后也是做了lib在项目中引用解决了。

visual c++ - SQLite compiler errors - Stack Overflow

When including "sqlite3.c" into my project, I get lots of compiler errors:

error C2027: use of undefined type "_ht"    d:...sqlite3.c    line 19556
...
fatal error C1003: Errors in the program are too numerous to allow recovery. The compiler must terminate.

When inlcuding "sqlite3.c" into an empty test project, I have no problems. I compared project settings and there are no big differences between the two projects.

How can I troubleshoot this problem? Is there anyone who had the same issue?

-------------------------

It looks like you're not including all its header files (or maybe you're trying to build C as C++).

Don't Do That. Better yet, build it into a library (or use someone else's build) and just include the built version in your project.

原文地址:https://www.cnblogs.com/sinceret/p/14849645.html