Skip to content

Instantly share code, notes, and snippets.

@olsonjeffery
Created February 23, 2012 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olsonjeffery/1895065 to your computer and use it in GitHub Desktop.
Save olsonjeffery/1895065 to your computer and use it in GitHub Desktop.
mingw32 build errors...
$ LD_LIBRARY_PATH=/mingw/lib make
gcc -L./ -L/mingw/lib -I/mingw/include -I./../libuv/include test_case.c -luv -o
test
.//libuv.a(handle.o): In function `uv_close':
c:\src\libuv/src/win/handle.c:89: undefined reference to `shutdown@8'
c:\src\libuv/src/win/handle.c:93: undefined reference to `closesocket@4'
c:\src\libuv/src/win/handle.c:115: undefined reference to `closesocket@4'
.//libuv.a(udp.o): In function `uv_udp_getsockname':
c:\src\libuv/src/win/udp.c:47: undefined reference to `getsockname@12'
c:\src\libuv/src/win/udp.c:49: undefined reference to `WSAGetLastError@0'
.//libuv.a(udp.o): In function `uv_udp_set_socket':
c:\src\libuv/src/win/udp.c:66: undefined reference to `ioctlsocket@12'
c:\src\libuv/src/win/udp.c:67: undefined reference to `WSAGetLastError@0'
c:\src\libuv/src/win/udp.c:94: undefined reference to `getsockopt@20'
.//libuv.a(udp.o): In function `uv_udp_init':
c:\src\libuv/src/win/udp.c:129: undefined reference to `WSARecv@28'
c:\src\libuv/src/win/udp.c:130: undefined reference to `WSARecvFrom@36'
.//libuv.a(udp.o): In function `uv__bind':
c:\src\libuv/src/win/udp.c:176: undefined reference to `socket@12'
c:\src\libuv/src/win/udp.c:178: undefined reference to `WSAGetLastError@0'
c:\src\libuv/src/win/udp.c:183: make: *** [all] Error 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment