在BCB2006中使用IdTCPClient元件出錯 |
缺席
|
mouse011
一般會員 發表:1 回覆:1 積分:0 註冊:2006-11-15 發送簡訊給我 |
請問一下
我使用BCB2006裡面的IdTCPClient元件 然後按F9編譯時,會出現有變數在winsock.h跟winsock2.h中重複宣告過...造成錯誤 請問有辦法只讓它只include一個就好嗎,因為這好像是元件自己include的,我也不知要怎麼把那include去掉 還請大家幫忙回答一下,謝謝! [C Error] winsock2.h(113): E2238 Multiple declaration for 'fd_set' [C Error] winsock.h(55): E2344 Earlier declaration of 'fd_set' [C Error] winsock2.h(116): E2146 Need an identifier to declare [C Error] winsock2.h(157): E2238 Multiple declaration for 'timeval' [C Error] winsock.h(98): E2344 Earlier declaration of 'timeval' [C Error] winsock2.h(213): E2238 Multiple declaration for 'hostent' [C Error] winsock.h(154): E2344 Earlier declaration of 'hostent' [C Error] winsock2.h(226): E2238 Multiple declaration for 'netent' [C Error] winsock.h(167): E2344 Earlier declaration of 'netent' [C Error] winsock2.h(233): E2238 Multiple declaration for 'servent' [C Error] winsock.h(174): E2344 Earlier declaration of 'servent' [C Error] winsock2.h(245): E2238 Multiple declaration for 'protoent' [C Error] winsock.h(186): E2344 Earlier declaration of 'protoent' [C Error] winsock2.h(401): E2238 Multiple declaration for 'sockaddr_in' [C Error] winsock.h(322): E2344 Earlier declaration of 'sockaddr_in' [C Error] winsock2.h(411): E2238 Multiple declaration for 'WSAData' [C Error] winsock.h(332): E2344 Earlier declaration of 'WSAData' [C Error] winsock2.h(427): E2146 Need an identifier to declare [C Error] winsock2.h(562): E2238 Multiple declaration for 'sockaddr' [C Error] winsock.h(495): E2344 Earlier declaration of 'sockaddr' [C Error] winsock2.h(602): E2238 Multiple declaration for 'sockproto' [C Error] winsock.h(504): E2344 Earlier declaration of 'sockproto' [C Error] winsock2.h(641): E2238 Multiple declaration for 'linger' [C Error] winsock.h(541): E2344 Earlier declaration of 'linger' [C Error] ws2tcpip.h(29): E2238 Multiple declaration for 'ip_mreq' [C Error] ws2tcpip.h(29): E2228 Too many error or warning messages |
blackart
一般會員 發表:6 回覆:14 積分:4 註冊:2004-03-26 發送簡訊給我 |
|
Hero
一般會員 發表:3 回覆:10 積分:12 註冊:2002-07-11 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |