Re: WSCEnumProtocols link error



yedong2005@xxxxxxxxx wrote:
> I am using visual studio 8 to build a c program to generate x64 64-bit
> binary.
>
> The compilation goes through without error.
>
> When it comes to link, it reports the following two errors:
> myWin32socket.obj: error LNK2019: unresolved external symbol
> WSCEnumProtocols referenced in function open_socket
> myWin32socket.obj : error LNK2019: unresolved external symbol
> __imp_WSASocketA referenced in function open_socket
> myProgram.exe: fatal error LNK1120: 2 unresolved externals
>
> I checked out the MSDN library to lookup this function
> WSCENumProtocols and got back to my source code, it did include the
> header file Ws2spi.h.

One line below it says

Link to Ws2_32.lib

--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.



Relevant Pages

  • Re: A Present-Day Koran Miracle?
    ... Chapter 12 examines 22 Traditions about the Compilation of ... the battle of Bir Maunah, and four hundred in the battle of ... could not provide two witnesses. ... the reports about compilation of Qur'an are deemed credible. ...
    (soc.religion.islam)
  • RE: Format Function.
    ... If it still cannot pass the compilation, would you please create a new ... Format is not shown with intellisense. ... It reports a compile error that Format is a type and cannot be used as ... Enum Format ''Format' is defined as a type ...
    (microsoft.public.vsnet.general)
  • WSCEnumProtocols link error
    ... it reports the following two errors: ... myWin32socket.obj: error LNK2019: unresolved external symbol ... myProgram.exe: fatal error LNK1120: 2 unresolved externals ... I checked out the MSDN library to lookup this function WSCENumProtocols ...
    (microsoft.public.vc.language)
  • glut compiling problem
    ... I am trying to generate a glut window, however, I got some compilation ... it reports that: ... (many variables with X prefix in libglut.a) ...
    (comp.sys.hp.hpux)