![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I can not compile db-4.5.20.NC with MinGW. It tell me : " Creating library file: .libs/libdb-4.5.dll.a .libs/os_errno.o(.text+0x56) s_errno.c: undefined reference to`WSAGetLastError@0' .libs/os_errno.o(.text+0x6a) s_errno.c: undefined reference to`WSASetLastError@4' " It seems that there must link some library. How can I fix it? Thank you! |
#3
| |||
| |||
|
|
gschen wrote: Hi, I can not compile db-4.5.20.NC with MinGW. It tell me : " Creating library file: .libs/libdb-4.5.dll.a .libs/os_errno.o(.text+0x56) s_errno.c: undefined reference to`WSAGetLastError@0' .libs/os_errno.o(.text+0x6a) s_errno.c: undefined reference to`WSASetLastError@4' " It seems that there must link some library. How can I fix it? Thank you! Did you try adding WS2_32.lib to your LIBS environment variable before running configure? Something like LIBS=-WS2_32.lib Regards, Alex |
#4
| |||
| |||
|
|
"Alex дµÀ£º " gschen wrote: Hi, I can not compile db-4.5.20.NC with MinGW. It tell me : " Creating library file: .libs/libdb-4.5.dll.a .libs/os_errno.o(.text+0x56) s_errno.c: undefined reference to`WSAGetLastError@0' .libs/os_errno.o(.text+0x6a) s_errno.c: undefined reference to`WSASetLastError@4' " It seems that there must link some library. How can I fix it? Thank you! Did you try adding WS2_32.lib to your LIBS environment variable before running configure? Something like LIBS=-WS2_32.lib Regards, Alex Thank you Alex, I fix it! |
#5
| |||
| |||
|
|
Hi, I can not compile db-4.5.20.NC with MinGW. It tell me : " Creating library file: .libs/libdb-4.5.dll.a .libs/os_errno.o(.text+0x56) s_errno.c: undefined reference to`WSAGetLastError@0' .libs/os_errno.o(.text+0x6a) s_errno.c: undefined reference to`WSASetLastError@4' " It seems that there must link some library. How can I fix it? Thank you! |
![]() |
| Thread Tools | |
| Display Modes | |
| |