【只争朝夕】

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

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

最后也是做了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.

 

 

posted on 2021-06-04 15:08  【只争朝夕】  阅读(43)  评论(0编辑  收藏  举报