Any cygwin ports of Berkeley DB libraries?

Craig Nelson
Wed Mar 31 19:45:00 GMT 1999

you just have to get db to compile with cygwin thinking its on a unix machine,
(as opposed to db realizing its on an intel box) and then link your code to the resulting libdb.a

Check the cygwin mail archives for the db code and your source code 
modifications you will need.  Specifically, I'm refering to the Message from 
Micheal Czapski dated Thu, 27, Aug, 1998.  (subject: gcc ... -U_WIN32.. may cause problems)

A correction to the code snippet listed there is:

	change the line: '#include' to '#include <unistd.h>'

It's a simple fix, and it beats compiling db with msvc++ and porting the .lib 
file over.

I would have included the snippet here, but do not have it online at the moment.

Craig Nelson, Cameo Systems Inc.

> From Tue Mar  9 12:10 MST 1999
> Mailing-List: contact; run by ezmlm
> Delivered-To: mailing list
> From: "Kevin Wright" <>
> To: <>
> Subject: Any cygwin ports of Berkeley DB libraries?
> Date: Tue, 9 Mar 1999 11:07:39 -0800
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> X-Priority: 3 (Normal)
> X-MSMail-Priority: Normal
> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
> Importance: Normal
> Hello,
> I have searched the archives but didn't find any ports of the Berkeley DB
> libraries to cygwin. I'm trying to build some software which requires the
> libdb.a library.
> I have tried to build this myself from the source code and always run into
> trouble. So far, I have tried to build versions 1.86, 2.3.16, & 2.7.3 with
> no luck.
> Any help would be appreciated.
> Kevin Wright
> Mountain View, CA
> --
> Want to unsubscribe from this list?
> Send a message to

Want to unsubscribe from this list?
Send a message to

More information about the Cygwin mailing list