Winsock and x64

I am trying to create a C-based application in 64-bit mode using the x64 target in the configuration manager in visual studio 2008.

However, I use sockets, and my program includes winsock.h and winsock32.lib in the project properties library section?

What is the equivalent for 64-bit? I do not want to run a 32-bit, but as a purely 64-bit application.

Thanks for any help in advance.

Subbu

+4
source share
2 answers

Microsoft did not name some of these libraries very well, I'm afraid. As long as you reference the 64-bit version of winsock32.lib , everything should be fine. Here's an MSDN link with a similar problem and more information.

+4
source

In my "additional dependencies" I had to change the path: C: \ Program Files \ Microsoft SDK \ Windows \ v7.0 \ Lib \ winhttp.lib

to: C: \ Program Files \ Microsoft SDK \ Windows \ v7.0 \ Lib \ x64 \ winhttp.lib

0
source

Source: https://habr.com/ru/post/1346143/


All Articles