小弟初学网络通信,用的是如下代码,用的IDE是DEVC++,编译时总是通不过,显示
C:\Users\Belial\AppData\Local\Temp\ccWv0nLN.o 未命名4.cpp:(.text+0x6d): undefined reference to _imp__WSAStartup@8'
_imp__socket@12'
C:\Users\Belial\AppData\Local\Temp\ccWv0nLN.o 未命名4.cpp:(.text+0xc2): undefined reference to
C:\Users\Belial\AppData\Local\Temp\ccWv0nLN.o 未命名4.cpp:(.text+0x10d): undefined reference to _imp__inet_addr@4'
_imp__htons@4'
C:\Users\Belial\AppData\Local\Temp\ccWv0nLN.o 未命名4.cpp:(.text+0x12b): undefined reference to
C:\Users\Belial\AppData\Local\Temp\ccWv0nLN.o 未命名4.cpp:(.text+0x16d): undefined reference to _imp__connect@12'
_imp__send@16'
C:\Users\Belial\AppData\Local\Temp\ccWv0nLN.o 未命名4.cpp:(.text+0x201): undefined reference to
C:\Users\Belial\AppData\Local\Temp\ccWv0nLN.o 未命名4.cpp:(.text+0x245): undefined reference to _imp__closesocket@4'
_imp__WSACleanup@0'
C:\Users\Belial\AppData\Local\Temp\ccWv0nLN.o 未命名4.cpp:(.text+0x259): undefined reference to
F:\ZA7ZA8\collect2.exe [Error] ld returned 1 exit status
求各位大大帮忙看看,感激不尽!!