Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

import Iphlpapi.lib when ACE_HAS_IPV6 for windows

143 views
Skip to first unread message

Yongming Wang

unread,
Jul 14, 2008, 4:22:52 AM7/14/08
to
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 */

Johnny Willemsen

unread,
Jul 14, 2008, 7:06:23 AM7/14/08
to wan...@gmail.com, ace-...@list.isis.vanderbilt.edu
Hi,

Thanks for using the PRF form. Can you put this patch and the other one in
bugzilla (see http://bugzilla.dre.vanderbilt.edu/). That way we can
integrate them when time permits it. When using bugzilla it is easier to
backtrace patches.

Regards,


Johnny Willemsen
Remedy IT
Postbus 101
2650 AC  Berkel en Rodenrijs
The Netherlands
www.theaceorb.nl / www.remedy.nl 

*** Integrated compile and test statistics see
http://scoreboard.theaceorb.nl ***
*** Commercial service and support for ACE/TAO/CIAO             ***
*** Get your free TAO Programmers Guide copy from
http://www.theaceorb.nl ***

"Yongming Wang" <wan...@gmail.com> wrote in message
news:<66951463-6491-4d47...@k30g2000hse.googlegroups.com>...

Message has been deleted

r.mohanat...@gmail.com

unread,
Nov 19, 2012, 8:38:15 AM11/19/12
to
Hi

Better if we put the below macros
#define ACE_HAS_IPV6 1
#define ACE_USES_IPV4_IPV6_MIGRATION 1

just before the includes

#include <ace/config-win32.h> or #include <ace/config-linux.h>

I have cheked with win32.h it is building.

Regards,
Mohan
0 new messages