LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

linking winsock in CVI 2009

I am trying to use winsock.h in my program. it compiles fine but it cannot find SOCKET, WSAStartup and a few others in the linking stage. Is the lib that conntains these supposed to be part of the windows sdk that comes with CVI, or am I supposed to get them from the default windows stuff? I only ws2_32.dll on my machine but not ws_32.dll.

0 Kudos
Message 1 of 2
(4,440 Views)

You will have to add  ws2_32.lib to your project. AFAIK Ws2_32.lib comes with the  Windows SDK included in CVI FDS, but it is not included in the CVI base version.

0 Kudos
Message 2 of 2
(4,415 Views)