Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > C/C++: Общие вопросы > links to the Winsock Library file WS2_32.lib


Автор: ZUBR80 6.4.2009, 14:50
В MSDN есть строчки:
Ensure that the build environment refers to the Include, Lib, and Src directories of the Microsoft Windows Software Development Kit (SDK) or the earlier Platform Software Development Kit (SDK). 
Ensure that the build environment links to the Winsock Library file WS2_32.lib. Applications that use Winsock must be linked with the WS2_32.lib library file. 

Только что поставил VS2008 C++.
Как обеспечить refers - что то не могу найти где это делается в интерфейсе? smile 

Автор: zim22 6.4.2009, 14:58
Цитата(ZUBR80 @  6.4.2009,  14:50 Найти цитируемый пост)
Winsock Library file WS2_32.lib

клацните правой кнопкой мыши на проекте и выберите Properties->Configuration Properties->Linker->Input->Additional Depencies


Автор: ZUBR80 6.4.2009, 15:01
Спасибо!

Автор: mrbrooks 6.4.2009, 15:05
ZUBR80, как вариант прописать
Код

#pragma comment(lib, "ws2_32.lib")

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)