I don't have problem using winsock library, but I am using CVI6.0
In my C file, the order of include files is
winodws.h winsock2.h Includes.h (all my CVI inlclude files)
the ....CVI\sdk\include path is added under "Include Paths" option
ws2_32.lib is added to the Project from CVI\sdk\lib folder.
Hope it helps.
"fermenter" wrote in message news:506500000008000000B9810000email@example.com... > I'm using CVI 5.0.1, linking with ws2_32.lib and providing the include > path to the winsock2 header files. Still getting winsock2.h errors, > link errors.
Hello, Please make sure that you are using the Win32 SDK support that ships with LW/CVI. If you don't have it already installed, you can perform a custom installation and manually add the support for Win32 SDK. Once you have the support installed, you don't have to explicitly specify the directory in the include path. However, you have to add the library file in your CVI project in order to link your files correctly.
Mika Fukuchi Application Engineer National Instruments