0

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

4

1 回答 1

1

libdb48.dll 在哪里?安装了吗?在哪里?一个应该使它工作的黑客解决方案是将 libdb48.dll 复制到 c:\windows\system32 中。如果这样可以解决问题,那么您就知道 DLL 不在路径上。然后你可以找到一个更合适的地方来放置它。

于 2009-10-16T14:11:44.673 回答