I tried even give complete path as #include"c:/Programfiles/oracle/Berkely/include/db_cxx.h" but this gives error of conflicting basic data types with the compiler data type?? So i thought the data base is not properly locked or Berkely can not work with MinGW compiler?
You might try posting the error message, without info all we can do is say nothing.
Note, learning to use Google to solve programming issues is a good thing.
Did you try defining HAVE_CXX_STDHEADERS per Google search message below.
terms were "minGW db_cxx.h" had to use cache to see message.
Did you run configure with --enable-mingw this might or might not apply to your issue.
Tim S
From Google results
I used a fresh installation of BerkeleyDB, built from source (the one provided
for Win32 is only for MSVC). There is a small issue with this and MinGW:
the user has to manually specify -DHAVE_CXX_STDHEADERS before configuring
(plus all other CFLAGS and LDFLAG if "db" is not installed where expected),
because MinGW does not provide "exception.h" but "exception". Here is the
failed step: