Article View: borland.public.cppbuilder.nativeapi
Article #6206Re: Linker Error
From: Bob Gonder
Date: Thu, 02 Jun 2005 16:37
Date: Thu, 02 Jun 2005 16:37
28 lines
1957 bytes
1957 bytes
Patrick Wong wrote: >"Bob Gonder" wrote in message >> >> 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 didn't ask if you had the path listed. I asked if you had the library listed in your project. Two completely different questions. >I try to add a line: > >#pragma comment(lib,"Ws2_32.lib") > >and the linker error gone. That is because you have now done what I asked about in the first place, and added the library to your project. >But it is not a proper way to link libraries, is it? It is one way. The older, more traditional way is to add the library to your project so that it will be included in the linking step.... Or add it to your linker command in a make file.
Technical Details
Message-ID:
<43du91l58na6pjv9m9g8tef1urdbgljppg@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<429c49e7$1@newsgroups.borland.com> <l2vo919rsjt5mi7ho11pvkbea4f079s56f@4ax.com> <429d11b2$1@newsgroups.borland.com> <rtnr91130nbpgl62hkonq66i4bl778puau@4ax.com> <429edacc$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: Thu, 02 Jun 2005 09:37:10 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <43du91l58na6pjv9m9g8tef1urdbgljppg@4ax.com> References: <429c49e7$1@newsgroups.borland.com> <l2vo919rsjt5mi7ho11pvkbea4f079s56f@4ax.com> <429d11b2$1@newsgroups.borland.com> <rtnr91130nbpgl62hkonq66i4bl778puau@4ax.com> <429edacc$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.200.242 X-Trace: newsgroups.borland.com 1117730228 67.77.200.242 (2 Jun 2005 09:37:08 -0700) Lines: 30 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail