Berkeley DB(无法定位组件)
我对伯克利数据库有疑问。我收到一个标题为“无法定位组件”的对话框,显示“此应用程序无法启动,因为找不到 libdb48.dll。重新安装应用程序可能会解决此问题”,然后单击“确定”后崩溃。运行下面这些简单代码时,我收到错误消息:
#include <iostream>
#include <string>
#include <db_cxx.h>
using namespace std;
int main()
{
Db db(0, 0);
}
我已经将附加包含目录设置为“build_windows”目录,并且已链接到“libdb48.lib”。老实说,我不知道在这里做什么。有趣的是,我用谷歌搜索,结果返回了 0 页。
我正在使用 Visual Studio C++ 2008 和 Berkeley DB 4.8.24
谢谢
I have a problem with berkeley DB. I get a dialog titled "Unable To Locate Componenent" saying "This application has failed to start because libdb48.dll was not found. Re-installing the application may fix this problem", then it crashes after clicking ok. I got the error message when running these simple code below:
#include <iostream>
#include <string>
#include <db_cxx.h>
using namespace std;
int main()
{
Db db(0, 0);
}
I already set the Additional include directories to the "build_windows" directory and I have linked to the "libdb48.lib". I honestly do not know what to do here. The funny part is, I googled and I had 0 pages returned.
I am using visual studio c++ 2008 and Berkeley DB 4.8.24
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
libdb48.dll 在哪里?安装了吗?在哪里?一个应该让它工作的黑客解决方案是将 libdb48.dll 复制到 c:\windows\system32 中。如果这解决了问题,那么您就知道该 DLL 不在路径上。然后你就可以找到一个更合适的地方来放置它。
Where is libdb48.dll? Is it installed? Where? A hackish solution that should make it work is to copy libdb48.dll into c:\windows\system32. If that solves the problem, then you know that the DLL just wasn't on the path. Then you can find a more appropriate place to put it.