sqlite-3.6.6.2 vs2008 编译

前端之家收集整理的这篇文章主要介绍了sqlite-3.6.6.2 vs2008 编译前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

http://www.sqlite.org/ 下载

编译器输出错误是:
错误278 error LNK2005: _sqlite3_api 已经在 fts3.obj 中定义 fts3_tokenizer.obj

错误279 error LNK2005: _sqlite3_extension_init 已经在 fts3.obj 中定义 rtree.obj

错误 280 error LNK2005: _sqlite3_api 已经在 fts3.obj 中定义 rtree.obj

错误 281 fatal error LNK1169: 找到一个或多个多重定义的符号E:/sqlite/Debug/sqlite.dll

预处理器定义 加上
sqlITE_ENABLE_FTS3
sqlITE_ENABLE_RTREE

sqlITE_EXTENSION_INIT1的问题.在多个文件当中重复使用了.在fts_taokenizer.c和fts文件的的这个宏使用的地方用extern const sqlite3_api_routines *sqlite3_api;代替就ok了.

原文链接:https://www.f2er.com/sqlite/203152.html

猜你在找的Sqlite相关文章