DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L1906
Version: 1.3-current


In the file configure.in, at line 622 change from:

        LIBS="$LIBS -lole32 -luuid -lcomctl32 -lwsock32"


to

        LIBS="$LIBS -lole32 -luuid -lcomctl32 -lws2_32 "


In the file Fl_win32.cxx, at line 47 change from:

#  include <winsock.h>


to:

#  include <winsock2.h>

And that's it. Done.


As a side note, there's code in Fl_win32.cxx to enable

// USE_ASYNC_SELECT - define it if you have WSAAsyncSelect()...
//#define USE_ASYNC_SELECT

Now, acording to MSDN, WSAAsyncSelect() really only works with winsock2,
which I thought *might* explain why it had never worked with the previous
fltk-1.x variants (that used winsock-1.x).

However, the limited testing I have done suggests it still does not work
as written with winsock2 enabled, so I had to revert to the current
polling method.

Nonetheless, there are still significant gains, for me, using winsock2 for
other issues - in particular my socket/multicast code is more consistent.


Link: http://www.fltk.org/str.php?L1906
Version: 1.3-current

_______________________________________________
fltk-bugs mailing list
fltk-bugs@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to