| | | | Browse by category |
Article ID: 833
Last updated: 05 Feb, 2008
Problem
When trying to establish a connection to my database using DBTools.h++, I get the error: [DBNOTFOUND] No access library
Cause
This is a general error indicating the DBTools.h++ core library is unable to find the access library you specified in the first parameter of the RWDBManager::database() call. This may be due to incorrect linking, not including the additional object file required when using static libraries, incorrect environmental settings, or even misspelling the name in the first parameter to RWDBManager::database(). If shared or DLL libraries are used, be sure to put that filename as the first parameter. If one of the hardcoded strings for static libraries was erroneously used, it could have generated the DBNOTFOUND error.
Action
First, make sure you have followed every step in the DBTools.h++ installation (or build) guide. This guide contains valuable information on how to compile, link, and execute a program that uses DBTools.h++.
When trying to establish a connection to my database using DBTools.h++, I get the error: [DBNOTFOUND] No access library
Cause
This is a general error indicating the DBTools.h++ core library is unable to find the access library you specified in the first parameter of the RWDBManager::database() call. This may be due to incorrect linking, not including the additional object file required when using static libraries, incorrect environmental settings, or even misspelling the name in the first parameter to RWDBManager::database(). If shared or DLL libraries are used, be sure to put that filename as the first parameter. If one of the hardcoded strings for static libraries was erroneously used, it could have generated the DBNOTFOUND error.
Action
First, make sure you have followed every step in the DBTools.h++ installation (or build) guide. This guide contains valuable information on how to compile, link, and execute a program that uses DBTools.h++.
Next, make sure all the files (lib and object files) were added to the project or makefile, especially the object file.
If you're still having problems, try some of the following suggestions:
- If static libraries are used, make sure you linked to the access library .lib (UNIX: .a) file, verify there is an object file .obj (UNIX: .o) in the workspaces lib directory, and make sure the static access library string was specified (i.e. ORACLE, SYBASE_CT), as opposed to the filename of the library (libora7d.lib) as the first parameter to RWDBManager::database(), as described in section 2.1 of your access library guide.
- If shared or dynamic libraries are used, make sure that the directory with the .dll or .so files is in your dynamic loading path. For Windows, this directory should be in your %PATH%. On Solaris: make sure this directory is in your $LD_LIBRARY_PATH. Check the DBTools.h++ readme file or your system documentation for all other platforms. Also, make sure your database client is properly set up. Check your DBTools.h++ build or installation guide for more information.
This article was:
Helpful |
Not helpful
Report an issue
Article ID: 833
Last updated: 05 Feb, 2008
Revision: 1
Views: 24722
Posted: 16 Jul, 1997 by
Dean J.
Updated: 05 Feb, 2008 by
Dean J.
Others in this category
Powered by KBPublisher (Knowledge base software)