🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Linker Error

#6200
From: Patrick Wong
Date: Thu, 02 Jun 2005 10:09
17 lines
1489 bytes
"Bob Gonder" <notbg@notmindspring.invalid> wrote in message
news:rtnr91130nbpgl62hkonq66i4bl778puau@4ax.com...
>
> Did you add that w32_32.lib to your project?
>
The ws2_32.lib is already in one of the paths "($BCB)\lib" specified in
Project Options - Directories - Library path, but the linker just fails to
locate it.

I try to add a line:

#pragma comment(lib,"Ws2_32.lib")

and the linker error gone.

But it is not a proper way to link libraries, is it?
Technical Details
Message-ID: <429edacc$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <429c49e7$1@newsgroups.borland.com> <l2vo919rsjt5mi7ho11pvkbea4f079s56f@4ax.com> <429d11b2$1@newsgroups.borland.com> <rtnr91130nbpgl62hkonq66i4bl778puau@4ax.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: "Patrick Wong" <patrickwong@computer.org>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <429c49e7$1@newsgroups.borland.com> <l2vo919rsjt5mi7ho11pvkbea4f079s56f@4ax.com> <429d11b2$1@newsgroups.borland.com> <rtnr91130nbpgl62hkonq66i4bl778puau@4ax.com>
Subject: Re: Linker Error
Date: Thu, 2 Jun 2005 18:09:13 +0800
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 203.82.252.252
Message-ID: <429edacc$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1117706956 203.82.252.252 (2 Jun 2005 03:09:16 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail