如何创建一个BDB数据库?如何打开一个数据库啊?#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <db.h>
#include <db_cxx.h>
#define DATABASE "demo.db"void main()
{
DB *dbp;
db_create _P((&dbp, NULL, 0)); dbp->open(dbp, NULL, DATABASE, NULL, DB_BTREE, DB_CREATE, 0664);
}
我编译的时候提示如下错误
Compiling...
dbtext.cpp
Linking...
dbtext.obj : error LNK2001: unresolved external symbol _db_create
Debug/dbtext.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Creating browse info file...dbtext.exe - 2 error(s), 0 warning(s)
这是咋回事啊?