Berkeley DB(无法找到组件) [英] Berkeley DB(Unable to Locate Component)

查看:180
本文介绍了Berkeley DB(无法找到组件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个berkeley DB的问题。我得到一个对话框标题为无法找到组件说这个应用程序未能启动,因为libdb48.dll未找到。重新安装应用程序可能会解决这个问题,然后它崩溃后单击确定。我在运行以下简单代码时收到错误消息:

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);
}


$ b $ p我已将Additional目录设置为build_windows目录,链接到libdb48.lib。我真的不知道在这里做什么。

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.

我使用的是视觉工作室c ++ 2008和Berkeley DB 4.8.24

I am using visual studio c++ 2008 and Berkeley DB 4.8.24

感谢

推荐答案

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.

这篇关于Berkeley DB(无法找到组件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆