Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. LINK : fatal error LNK1104: cannot open file 'Ws2_32.lib'

LINK : fatal error LNK1104: cannot open file 'Ws2_32.lib'

Scheduled Pinned Locked Moved C / C++ / MFC
helpcsharpvisual-studioquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jalsa G
    wrote on last edited by
    #1

    hi all, how can i link this library(Ws2_32.lib)o my project as this library is in visual studio 6.0 so can i directly include the path of this folder to remove linking errors plz help me regards venu

    venu

    P F 2 Replies Last reply
    0
    • J jalsa G

      hi all, how can i link this library(Ws2_32.lib)o my project as this library is in visual studio 6.0 so can i directly include the path of this folder to remove linking errors plz help me regards venu

      venu

      F Offline
      F Offline
      Frank K
      wrote on last edited by
      #2

      Hi, look at Tools->Options Dialog-Tab: Directories Choose: Library Files and add the directory from the lib HTH Frank

      1 Reply Last reply
      0
      • J jalsa G

        hi all, how can i link this library(Ws2_32.lib)o my project as this library is in visual studio 6.0 so can i directly include the path of this folder to remove linking errors plz help me regards venu

        venu

        P Offline
        P Offline
        prasad_som
        wrote on last edited by
        #3

        Use Project-->Settings-->Link-->Object\Library module edit box.

        Prasad Notifier using ATL

        J 1 Reply Last reply
        0
        • P prasad_som

          Use Project-->Settings-->Link-->Object\Library module edit box.

          Prasad Notifier using ATL

          J Offline
          J Offline
          jalsa G
          wrote on last edited by
          #4

          thank you all, i solved the problem...it was another library to link it(winsock.lib) regards

          venu

          F 1 Reply Last reply
          0
          • J jalsa G

            thank you all, i solved the problem...it was another library to link it(winsock.lib) regards

            venu

            F Offline
            F Offline
            Frank K
            wrote on last edited by
            #5

            Hi But winsock.lib (winsock version 1.0) is the old version. The newer version is ws2_32.lib (winsock version 2.0) Frank

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups