筍子工作雜記

二月 10, 2009

C++ Builder: Winsock 1 和 Winsock 2 Header 重複的問題

Filed under: C++,Programming — 標籤:, , , — shinnlu @ 5:28 下午

使用 Indy 元件時,有時候會遇到元件引用的問題,在 Winsock1 和 Winsock2 的Header 裡,有不少是相同名字的宣告,而

發生時的錯誤訊息如下:
[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
當發生這些錯誤訊息(winsock 的 Multiple declaration )時,請嘗試以下的步驟。
BCB 6 中按「Project/Options」,點選「Directories/Conditionals」,在「Conditional defines」欄位中加入

「_WINSOCKAPI_」字串(如果己經有其他的定義,請放前面,並以分號隔開),最後按「OK」,然後重新編譯

45 則迴響 »

  1. yandanxvurulmus.6nqwNAvjBwJ8

    迴響 by am siteleri — 十二月 30, 2023 @ 12:37 上午

  2. xyandanxvurulmus.aB5uaeAO9lWb

    迴響 by salpae — 十二月 30, 2023 @ 4:03 上午

  3. xbunedirloooo.XGjakZfNCtAX

    迴響 by xylyl — 十二月 30, 2023 @ 4:48 上午

  4. outcount xyandanxvurulmus.jrybece6wif9

    迴響 by outcount — 十二月 30, 2023 @ 4:15 下午

  5. bahis siteleri porn vurgunyedim.6LVb3i2bjbPo

    迴響 by eski rahatiniz olmayacak — 一月 16, 2024 @ 11:09 下午

  6. fuck yaralandinmieycan.vGqi9LbprI8f

    迴響 by porn sex — 一月 17, 2024 @ 2:56 下午

  7. sektor benim zaten amin evladi citixx.W0H9oXIdW3Fl

    迴響 by sexax — 一月 20, 2024 @ 4:18 下午

  8. amciik siteleri hyuqgzhqt.7wI9K5Ec7OCO

    迴響 by porno izle — 一月 20, 2024 @ 4:42 下午

  9. anal siteleri ewrjghsdfaa.eTSCEa56b70F

    迴響 by food porn — 一月 20, 2024 @ 4:51 下午

  10. bahis siteleri porn wrtgdfgdfgdqq.5k4t9emJGdFh

    迴響 by house porn — 一月 20, 2024 @ 5:23 下午

  11. seks siteleri wrtgdfgdfgdqq.qHmiTAwzD6Vi

    迴響 by bahis siteleri incest category — 一月 20, 2024 @ 5:32 下午

  12. eski rahatiniz olmayacak pompadirha.iY46GNM0du3B

    迴響 by porn — 二月 2, 2024 @ 7:31 下午

  13. BİZİ SİK BİZ BUNU HAK EDİYORUZ asillartaklitler.yNgYEg1iqRHQ

    迴響 by porn — 二月 2, 2024 @ 7:47 下午

  14. food porn hephupx.lozqR3vPZ0nC

    迴響 by bahis siteleri porn — 二月 3, 2024 @ 12:29 上午

  15. bahis siteleri incest category hepxhupx.yrdRTW8AqlOX

    迴響 by childrens sex — 二月 3, 2024 @ 8:02 下午

  16. watch porn video juljulfbi.ZxaEtllnibAJ

    迴響 by seks siteleri — 二月 3, 2024 @ 8:57 下午

  17. fuck google bjluajszz.2j8uSFQU4gaT

    迴響 by porn sex — 二月 5, 2024 @ 2:59 下午

  18. bahis porno bxjluajsxzz.xZlYpS2fyfSI

    迴響 by eskort siteleri — 二月 5, 2024 @ 3:17 下午

  19. porn 0qbxjluaxcxjsxzz.aFnaYsnCBKA0

    迴響 by pornhub bahis siteleri — 二月 5, 2024 @ 3:37 下午

  20. pron hd com. gghkyogg.bCwSg0dtdKD

    迴響 by top hd pron — 三月 13, 2024 @ 3:04 下午

  21. full porn free ggjennifegg.GVielVMPnfT

    迴響 by full hd sex video download — 三月 13, 2024 @ 8:59 下午

  22. porn video 4k download ggjinnysflogg.edUcksXRKYQ

    迴響 by free latest hd porn — 三月 13, 2024 @ 11:33 下午

  23. fashionflag 4k porn downloads fashionflag.bEVkiYLWe2d

    迴響 by fashionflag full hd 4k porn video — 三月 27, 2024 @ 4:12 下午

  24. goodhere Missionary Style porn vurucutewet.L8Wp31eStG2

    迴響 by goodhere MILF porn — 三月 28, 2024 @ 12:21 下午

  25. ladyandtherose Shemale porn backlinkseox.7HaoUJMDebl

    迴響 by ladyandtherose Fetish porn — 三月 28, 2024 @ 3:46 下午

  26. jenniferroy 偽タクシーポルノ japanesexxporns.ENKnuBVXLy4

    迴響 by jenniferroy 妊娠中のポルノ — 三月 28, 2024 @ 10:21 下午

  27. landuse Celebrity porn lancdcuse.uIhV9kOpMCS

    迴響 by landuse Gangbang porn — 三月 29, 2024 @ 3:05 下午

  28. falbobrospizzamadison Celebrity porn jkkıjxxx.ml0lRDFSC0y

    迴響 by falbobrospizzamadison Hardcore porn — 三月 29, 2024 @ 10:06 下午

  29. आबनूस अश्लील qqyyooppxx.kOELdhJfDOR

    迴響 by विंटेज अश्लील — 三月 30, 2024 @ 2:45 下午

  30. बुत अश्लीलता के बा hjkvbasdfzxzz.NgeLs4T9tl8

    迴響 by सेलिब्रिटी पोर्न के बा — 三月 30, 2024 @ 10:45 下午

  31. रूसी अश्लील साहित्य txechdyzxca.O49pOUMPhav

    迴響 by कट्टर अश्लीलता — 四月 1, 2024 @ 6:09 下午

  32. हेनतई, एनीमे पोर्न hkyonet.hfvEt9JPT3I

    迴響 by हम अश्लील हैं — 四月 3, 2024 @ 1:30 上午

  33. ਬੇਤਰਤੀਬ ਪੋਰਨ madisonivysex.SAjMo0Z5QRY

    迴響 by swinger ਪੋਰਨ ਹੈ — 四月 3, 2024 @ 11:10 下午

  34. ladesbet ਵਿੰਟੇਜ ਅਤੇ ਨੌਜਵਾਨ ਪੋਰਨ ladesinemi.jfjBUgQhf7G

    迴響 by ladesbet ਏਸ਼ੀਆਈ ਪੋਰਨ — 四月 5, 2024 @ 12:38 下午

  35. ladesbet バイセクシャルポルノ ladestinemi.5Z43VLy5bzU

    迴響 by ladesbet フェラチオポルノ — 四月 5, 2024 @ 2:18 下午

  36. 同性愛者のポルノ .mxrynysghY7

    迴響 by gobigbrain 同性愛者のポルノ — 六月 7, 2024 @ 1:23 上午

  37. ਏਸ਼ੀਆਈ ਪੋਰਨ .mqegfNYLniZ

    迴響 by kidzkaboodle ਏਸ਼ੀਆਈ ਪੋਰਨ — 六月 7, 2024 @ 1:49 上午

  38. ਤਿੱਕੜੀ ਪੋਰਨ .MF2T6gTF5KB

    迴響 by glencovesaltcave ਤਿੱਕੜੀ ਪੋਰਨ — 六月 7, 2024 @ 1:52 上午

  39. https://crlqjrjzqn.kosutnjak.info/ .ZZyiCfPMfya

    迴響 by lacus — 七月 6, 2024 @ 5:06 下午

  40. https://www.heritagefamilypantry.com/ .QCuJN1Cydhv

    迴響 by buy viagra online — 九月 6, 2024 @ 7:23 下午

  41. w639aQWcBZU

    迴響 by casibom güncel giriş — 九月 7, 2024 @ 12:18 上午

  42. https://www.heritagefamilypantry.com/sfMyVSxKGhY

    迴響 by buy viagra online — 九月 9, 2024 @ 5:12 下午

  43. https://betovis34.net/ gsOS618OzOv

    迴響 by ਹਾਰਡਕੋਰ ਪੋਰਨੋਗ੍ਰਾਫੀ — 九月 18, 2024 @ 7:08 上午

  44. 2CnqiTlGXF5

    迴響 by bewb — 九月 22, 2024 @ 2:29 下午

  45. MvxDCiOjZNY

    迴響 by http://www.bursakameraguvenlik.com/gvenilir-casino-sitelerinde-yasal-durumlar-ve-lisanslar/ — 九月 26, 2024 @ 8:55 下午

此篇文章迴響的訂閱源料 TrackBack URL

發表迴響

Powered by WordPress