bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

poll.c on Windows


From: Gisle Vanem
Subject: poll.c on Windows
Date: Tue, 24 Feb 2015 21:58:36 +0100
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0 SeaMonkey/2.32.1

I'm getting this error at the link stage (MSVC v18 on Win-8.1):

  poll.obj : error LNK2019: unresolved external symbol
    _recv_used_without_including_sys_socket_h referenced in function 
_windows_compute_revents_socket

  poll.obj : error LNK2019: unresolved external symbol
    _select_used_without_including_sys_select_h referenced in function _rpl_poll

The solution seems clearly spoken by the linker:

--- a/poll.c    2015-02-24 21:28:54 +0000
+++ b/poll.c      2015-02-24 21:47:05 +0000
@@ -41,6 +41,8 @@
 # include <io.h>
 # include <stdio.h>
 # include <conio.h>
+# include <sys/socket.h>
+# include <sys/select.h>
 # include "msvc-nothrow.h"
 #else
 # include <sys/time.h>

What do you say?

--
--gv



reply via email to

[Prev in Thread] Current Thread [Next in Thread]