🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #6263

Re: Linker Error

#6263
From: Bob Gonder
Date: Tue, 31 May 2005 15:17
17 lines
1715 bytes
Patrick Wong wrote:

>I try to call some Winsock APIs in a thread of my application.  It fails to
>be built for:
>
>[Linker Error] Unresolved external 'WSAIoctl' referenced from
>D:\PROJECTS\SNIFFER\SNIFFERTHREAD.OBJ

Remove Winsock.lib, and add  Ws2_32.lib  to your project or link step

>Comment out the call to WSAIoctl() will eliminate the problem.  Winsock
>should be dynamic linking, so why the link time error will be caused?  And
>why not other call like WSAStartup() causing the same problem?

WSAIoctl is a Socket2 call. All the other calls are compatable with
the original Socket (Winsock.dll) You need to replace the older
winsock.lib with the new ws2_32 version in your project/linker.
Technical Details
Message-ID: <l2vo919rsjt5mi7ho11pvkbea4f079s56f@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <429c49e7$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e1ea2972d73d7675
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Linker Error
Date: Tue, 31 May 2005 08:17:51 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <l2vo919rsjt5mi7ho11pvkbea4f079s56f@4ax.com>
References: <429c49e7$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.77.154.209
X-Trace: newsgroups.borland.com 1117552669 67.77.154.209 (31 May 2005 08:17:49 -0700)
Lines: 19
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail