Windows C++socket Programming, call WSAStartup function error: undefined reference to ' [email protected] ' |
I'm using Codeblocks MinGW.
MinGW provides a simple and convenient development environment based on the GCC program under Windows. MinGW collects a series of free Windows-used header files and library files, and integrates the GNU (http://www.gnu.org/) toolset, especially GNU program development tools such as classic GCC, g++, make, etc. MinGW is free software, which simulates the development environment of the Linux under GCC on the Windows platform, provides a good foundation for C + + cross-platform development, and provides the conditions for programmers working under Windows to familiarize themselves with C + + engineering organizations under Linux.
Cause: Missing link parameters for socket
Solution: Menu-->projrcy-->build options-->debug->linker setting-->other Linker options: Add "-lws2_32"
Tools, compile options, add-lwsock32 to the connector command line by adding the following command
Windows codeblocks error undefined reference to '[email protected]' |