另外如果你同时引用DBISAM库(其实我也不知道这库是干吗的),反正就突然出现说winsock2.h编译出错,
[C++ Error] winsock2.h(109): E2238 Multiple declaration for 'fd_set'
[C++ Error] winsock.h(54): E2344 Earlier declaration of 'fd_set'
这种错误肯定是头文件互相引的时候出的错,不过找起来可就费劲了,不过好在有google,找了半天终于查到了
The winsock2.h header file is included by the Indy components and is based on Winsock 2.2. The winsock.h header file is included by DBISAM and is based on the Winsock 1.0.