Berkeley DB(无法定位组件)

发布于 2024-08-06 02:08:08 字数 444 浏览 8 评论 0原文

我对伯克利数据库有疑问。我收到一个标题为“无法定位组件”的对话框,显示“此应用程序无法启动,因为找不到 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

晚风撩人 2024-08-13 02:08:08

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文