help:加了sqlite3头文件,VC编译提示sqlite3_api未定义!why??
工程中添加了头文件:
#include "sqlite3.h"
#pragma comment(lib,"sqlite3.lib")
调用时:
int nResult = sqlite3_open("ff.db",&db);
出现sqlite3_api未定义!
error C2065: 'sqlite3_api' : undeclared identifier
error C2227: left of '->open' must point to class/struct/union
error C2227: left of '->errmsg' must point to class/struct/union
...
这是什么原因?应该怎么改呢?