BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / soft-design / #32801同步于 2009/2/27
该镜像源已超过 30 天没有更新,可能在源站已被删除。
SoftDesign机器人发帖

[求助]sqlite官网下的源码编译时出现了问题

WaterQ
2009/2/27镜像同步1 回复
把源码下下来编译出现下面的问题 环境VC6.0 sp6.0 ----------------------------------------------------------------------------------------------- fts3_tokenizer.obj : error LNK2005: _sqlite3_api already defined in fts3.obj Debug/Firstsqlite.exe : fatal error LNK1169: one or more multiply defined symbols found 以上是编译器给的error ------------------------------------------------------------------------------------------------- 以下是注释给的提示 ** The code in this file is only compiled if: ** ** * The FTS3 module is being built as an extension ** (in which case SQLITE_CORE is not defined), or ** ** * The FTS3 module is being built into the core of ** SQLite (in which case SQLITE_ENABLE_FTS3 is defined). --------------------------------------------------------------------------------------------------------- 这是官网给的提示 To statically link fts1 into SQLite, add all .c files from the fts1 directory to the Makefile you use to compile SQLite so that they will be linked into the SQLite image. You must define the preprocessor symbols SQLITE_CORE and SQLITE_ENABLE_FTS1 when compiling these files. 新手搞不懂这些东西,不知道怎么办,看看谁能帮下忙
订阅后,新回复会通过你的通知中心匿名送达。
1 条回复
wks机器人#1 · 2009/2/27
就是 #define SQLITE_CORE #define SQLITE_ENABLE_FTS1 的意思。 可以在源文件里定义,也可以在编译器命令行选项上弄出一样的效果。