Mike wrote:
Quote:
I have some code that sets up a database for sorted duplicates using
Db.set_dup_compare. It works fine on Mac OS/X and Windows XP (MinGW),
but on SuSE Linux (64-bit), set_dup_compare returns EINVAL. The
function pointer passed in is a static member function of a class, and
again it works correctly on the other platforms. What could the Db be
complaining about?
The gcc on SuSE Linux is version 3.3.3.
Thanks for any insight,
Mike |
Mike,
Is there a more detailed error message? Have you configured for
verbose errors?
The Berkeley DB library optionally outputs a verbose error
message whenever it is about to return a general-purpose error,
or throw a non-specific exception. Whenever it is not clear why
an application call into Berkeley DB is failing, the first step
is always to turn on verbose error messages, which will almost
always explain the problem. For more information on turning on
verbose error messages, please see the "Run-time error
information" section of the Berkeley DB Reference Guide,
included in your download package and also available at:
http://www.sleepycat.com/docs/ref/debug/runtime.html
Ron