Article View: borland.public.cppbuilder.internet.socket
Article #3568IPv6 Link error
From: Johnny Willemsen
Date: Fri, 02 Sep 2005 11:05
Date: Fri, 02 Sep 2005 11:05
30 lines
1739 bytes
1739 bytes
Hi,
We have code as following:
if (ip4 == INADDR_LOOPBACK)
{
in6_addr ip6 = in6addr_loopback;
ACE_OS::memcpy (&this->inet_addr_.in6_.sin6_addr,
&ip6,
sizeof (ip6));
return 0;
}
in6addr_loopback is defined in ws2tcpip.h as following:
extern const struct in6_addr in6addr_any;
extern const struct in6_addr in6addr_loopback;
When we now link our library we get the following link errors. How can we
resolve them?
Error: Unresolved external '_in6addr_any' referenced from
C:\ACE\LATEST\ACE_WRAPPERS\ACE\OBJ\ACE\DYNAMIC\DEBUG\INET_ADDR
.OBJ
Error: Unresolved external '_in6addr_loopback' referenced from
C:\ACE\LATEST\ACE_WRAPPERS\ACE\OBJ\ACE\DYNAMIC\DEBUG\INET
_ADDR.OBJ
** error 2 ** deleting ..\lib\ACE_bd.dll
Regards,
Johnny
Technical Details
Message-ID:
<431831d7$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,e1421db6a2be6f92,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Johnny Willemsen" <jwillemsen@remedy.nl> Newsgroups: borland.public.cppbuilder.internet.socket Subject: IPv6 Link error Date: Fri, 2 Sep 2005 13:05:45 +0200 Lines: 32 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 80.126.15.99 Message-ID: <431831d7$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1125659095 80.126.15.99 (2 Sep 2005 04:04:55 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail