In Cygwin:
cd /cygdrive/d/db-6.2.23.NC/build_unix/
../dist/configure --prefix=/cygdrive/d/db-6.2.23.NC.Build --enable-cxx
make install
In Qt .pro:
...
win32: LIBS += -L$$PWD/../../db-6.2.23.NC.Build/lib/ -ldb_cxx
INCLUDEPATH += $$PWD/../../db-6.2.23.NC.Build/include
DEPENDPATH += $$PWD/../../db-6.2.23.NC.Build/include
win32:!win32-g++: PRE_TARGETDEPS += $$PWD/../../db-6.2.23.NC.Build/lib/db_cxx.lib
else:win32-g++: PRE_TARGETDEPS += $$PWD/../../db-6.2.23.NC.Build/lib/libdb_cxx.a
Error Rebuild
...
D:\db-6.2.23.NC.Build\include\db.h:131: error: 'u_int32_t' does not name a type
typedef u_int32_t db_pgno_t; /* Page number type. */
...