Hi, all:
I am trying to build the Berkeley-db on the MinGW platform.
I used the command list below to build it:
.../dist/configure --enable-mingw
make
But when creating the library file, the error comes:
....
Creating library file: .libs/libdb-4.5.dll.a
..libs/os_errno.o(.text+0x286)

s_errno.c: undefined reference to
`WSAGetLastError@0'
..libs/os_errno.o(.text+0x2ae)

s_errno.c: undefined reference to
`WSASetLastError@4'
make: *** [libdb-4.5.la] Error 1
...
I am trying to fix this error according to the solution found on the
web by exporting LIBS environment variable as -WS2_32.lib. But after I
did it, the error will occur when doing the configure. The error is:
....
checking for cc... no
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C
compiler cannot create executables
See `config.log' for more details.
....
Do you have any idea about this problem?
The version of db is 4.5.20;
MinGW version is 3.1.0-1
MSYS version is 1.0.10
Thanks in advance.
Min