Hello,
ACE VERSION: 5.6.5 and most recent svn
HOST MACHINE and OPERATING SYSTEM: win vista
COMPILER NAME AND VERSION (AND PATCHLEVEL): vc9
THE $ACE_ROOT/ace/config.h FILE : #include "ace/config-win32.h" with
ACE_HAS_IPV6 enabled
link report:
SOCK_Dgram.obj : error LNK2019: unresolved external symbol
_GetAdaptersAddresses@20 referenced in function "protected: int
__thiscall ACE_SOCK_Dgram::make_multicast_ifaddr6(struct ipv6_mreq
*,class ACE_INET_Addr const &,char const *)" (?
make_multicast_ifaddr6@ACE_SOCK_Dgram@@IAEHPAUipv6_mreq@@ABVACE_INET_Addr@@ PBD@Z)
SOCK_Dgram_Mcast.obj : error LNK2001: unresolved external symbol
_GetAdaptersAddresses@20
..\lib\ACEd.dll : fatal error LNK1120: 1 unresolved externals
here is the fix:
----------------------
Index: config-win32-common.h
===================================================================
--- config-win32-common.h (revision 82282)
+++ config-win32-common.h (working copy)
@@ -497,6 +497,9 @@
# else
# pragma comment(lib, "ws2_32.lib")
# pragma comment(lib, "mswsock.lib")
+# if defined (ACE_HAS_IPV6)
+# pragma comment(lib, "Iphlpapi.lib")
+# endif
# endif /* ACE_HAS_WINCE */
# endif /* _MSC_VER */