wsock32.lib

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Mar 2007
Posts: 19
Reputation: Masood Ali is an unknown quantity at this point 
Solved Threads: 1
Masood Ali's Avatar
Masood Ali Masood Ali is offline Offline
Newbie Poster

wsock32.lib

 
0
  #1
May 22nd, 2007
I am developing a C++ application which deals with socket programming. When I build my program, I get an error as follows,

  1.  
  2. ------ Build started: Project: AFEClientPublic, Configuration: Debug Win32 ------
  3. Linking...
  4. LINK : fatal error LNK1104: cannot open file 'wsock32.lib'
  5. Build log was saved at "file://d:\AfeClientPublic43\AFEClientPublic43\Debug\BuildLog.htm"
  6. AFEClientPublic - 1 error(s), 0 warning(s)
  7. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I have also downloaded the wsock32.lib from web but I dont know where to place it to make my program run. Kindly guide me furthure.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 1,496
Reputation: WolfPack has a spectacular aura about WolfPack has a spectacular aura about WolfPack has a spectacular aura about 
Solved Threads: 104
Moderator
WolfPack's Avatar
WolfPack WolfPack is offline Offline
Mentally Challenged Mod.

Re: wsock32.lib

 
0
  #2
May 22nd, 2007
It doesnt matter where you put the wsock32.lib file. Just link it properly with the /link switch of your compiler. From the looks of it, you seem to be using the Visual C++ compiler. I thought the wsock32.lib file came with it by default and you wouldn't have to download it.

Anyway, if you are using the Visual Studio IDE, you can select "Add files to project" and select the wsock32.lib and build. Should work.
バルサミコ酢やっぱいらへんで
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 1,089
Reputation: vijayan121 is a name known to all vijayan121 is a name known to all vijayan121 is a name known to all vijayan121 is a name known to all vijayan121 is a name known to all vijayan121 is a name known to all 
Solved Threads: 164
vijayan121 vijayan121 is offline Offline
Veteran Poster

Re: wsock32.lib

 
0
  #3
May 22nd, 2007
if you are using the current version of platform sdk:
header is winsock2.h
import library (link to) ws2_32.lib
shared library (dll) ws2_32.dll
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC