Closed QazCetelic closed 1 month ago
Hello, I recently created something with ENet on Linux using the header file. It worked great, but I am unable to link it on Windows.
I created a reproducible example Project.zip.
It has been tested on 2 Windows PC's and 2 Linux PC's. It worked on both Linux machines, but not on the Windows machines. Here are the logs:
Hey there!
Make sure to link with winmm and ws2_32 on windows, they are required to run, as per https://github.com/zpl-c/enet/blob/master/CMakeLists.txt#L26
winmm
ws2_32
Thanks, I will try that!
Hello, I recently created something with ENet on Linux using the header file. It worked great, but I am unable to link it on Windows.
I created a reproducible example Project.zip.
It has been tested on 2 Windows PC's and 2 Linux PC's. It worked on both Linux machines, but not on the Windows machines. Here are the logs:
Windows PC 1 (failure)
``` ====================[ Build | client | Debug ]================================== "C:\Program Files\JetBrains\CLion 2024.2.1\bin\cmake\win\x64\bin\cmake.exe" --build REDACTED\OneDrive\Bureaublad\Project\cpp-group-h\POCs\networking\client\cmake-build-debug --target client -j 14 [1/2] Building CXX object CMakeFiles/client.dir/main.cpp.obj [2/2] Linking CXX executable client.exe FAILED: client.exe C:\WINDOWS\system32\cmd.exe /C "cd . && C:\PROGRA~1\JETBRA~1\CLION2~1.1\bin\mingw\bin\G__~1.EXE -g CMakeFiles/client.dir/main.cpp.obj -o client.exe -Wl,--out-implib,libclient.dll.a -Wl,--major-image-version,0,--minor-image-version,0 -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && C:\WINDOWS\system32\cmd.exe /C "cd /D REDACTED\OneDrive\Bureaublad\Project\cpp-group-h\POCs\networking\client\cmake-build-debug && C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noprofile -executionpolicy Bypass -file C:/vcpkg/scripts/buildsystems/msbuild/applocal.ps1 -targetBinary REDACTED/networking/client/cmake-build-debug/client.exe -installedDir C:/vcpkg/installed/x64-windows/debug/bin -OutVariable out"" C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_crc32': REDACTED/networking/enet.h:1527: undefined reference to `__imp_htonl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_protocol_handle_connect': REDACTED/networking/enet.h:1801: undefined reference to `__imp_ntohl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:1836: undefined reference to `__imp_ntohs' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:1837: undefined reference to `__imp_ntohl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:1838: undefined reference to `__imp_ntohl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:1839: undefined reference to `__imp_ntohl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:1840: undefined reference to `__imp_ntohl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:1841: undefined reference to `__imp_ntohl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj:REDACTED/networking/enet.h:1842: more undefined references to `__imp_ntohl' follow C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_protocol_handle_connect': REDACTED/networking/enet.h:1915: undefined reference to `__imp_htons' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:1918: undefined reference to `__imp_htonl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:1919: undefined reference to `__imp_htonl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:1920: undefined reference to `__imp_htonl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:1921: undefined reference to `__imp_htonl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:1922: undefined reference to `__imp_htonl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj:REDACTED/networking/enet.h:1923: more undefined references to `__imp_htonl' follow C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_protocol_handle_send_reliable': REDACTED/networking/enet.h:1939: undefined reference to `__imp_ntohs' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_protocol_handle_send_unsequenced': REDACTED/networking/enet.h:1961: undefined reference to `__imp_ntohs' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:1967: undefined reference to `__imp_ntohs' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_protocol_handle_send_unreliable': REDACTED/networking/enet.h:2006: undefined reference to `__imp_ntohs' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_protocol_handle_send_fragment': REDACTED/networking/enet.h:2030: undefined reference to `__imp_ntohs' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj:REDACTED/networking/enet.h:2037: more undefined references to `__imp_ntohs' follow C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_protocol_handle_send_fragment': REDACTED/networking/enet.h:2049: undefined reference to `__imp_ntohl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2050: undefined reference to `__imp_ntohl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2051: undefined reference to `__imp_ntohl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2052: undefined reference to `__imp_ntohl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_protocol_handle_send_unreliable_fragment': REDACTED/networking/enet.h:2133: undefined reference to `__imp_ntohs' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2141: undefined reference to `__imp_ntohs' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2158: undefined reference to `__imp_ntohl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2159: undefined reference to `__imp_ntohl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2160: undefined reference to `__imp_ntohl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2161: undefined reference to `__imp_ntohl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_protocol_handle_bandwidth_limit': REDACTED/networking/enet.h:2257: undefined reference to `__imp_ntohl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj:REDACTED/networking/enet.h:2262: more undefined references to `__imp_ntohl' follow C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_protocol_handle_acknowledge': REDACTED/networking/enet.h:2335: undefined reference to `__imp_ntohs' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2378: undefined reference to `__imp_ntohs' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_protocol_handle_verify_connect': REDACTED/networking/enet.h:2422: undefined reference to `__imp_ntohl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2425: undefined reference to `__imp_ntohl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2426: undefined reference to `__imp_ntohl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2427: undefined reference to `__imp_ntohl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2441: undefined reference to `__imp_ntohs' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2445: undefined reference to `__imp_ntohl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2457: undefined reference to `__imp_ntohl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2470: undefined reference to `__imp_ntohl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2471: undefined reference to `__imp_ntohl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_protocol_handle_incoming_commands': REDACTED/networking/enet.h:2492: undefined reference to `__imp_ntohs' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2593: undefined reference to `__imp_ntohs' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2684: undefined reference to `__imp_ntohs' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_protocol_send_acknowledgements': REDACTED/networking/enet.h:2801: undefined reference to `__imp_htons' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2807: undefined reference to `__imp_htons' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_protocol_send_outgoing_commands': REDACTED/networking/enet.h:3171: undefined reference to `__imp_htons' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:3193: undefined reference to `__imp_htons' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_peer_throttle_configure': REDACTED/networking/enet.h:3436: undefined reference to `__imp_htonl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:3437: undefined reference to `__imp_htonl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:3438: undefined reference to `__imp_htonl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_peer_send': REDACTED/networking/enet.h:3597: undefined reference to `__imp_htons' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:3600: undefined reference to `__imp_htons' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:3630: undefined reference to `__imp_htons' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:3631: undefined reference to `__imp_htonl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:3632: undefined reference to `__imp_htonl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:3633: undefined reference to `__imp_htonl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:3634: undefined reference to `__imp_ntohl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:3653: undefined reference to `__imp_htons' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:3657: undefined reference to `__imp_htons' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:3661: undefined reference to `__imp_htons' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_peer_disconnect_now': REDACTED/networking/enet.h:3939: undefined reference to `__imp_htonl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_peer_disconnect': REDACTED/networking/enet.h:3969: undefined reference to `__imp_htonl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_peer_setup_outgoing_command': REDACTED/networking/enet.h:4075: undefined reference to `__imp_htons' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:4079: undefined reference to `__imp_htons' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:4083: undefined reference to `__imp_htons' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_peer_queue_incoming_command': REDACTED/networking/enet.h:4286: undefined reference to `__imp_ntohs' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_host_connect': REDACTED/networking/enet.h:4625: undefined reference to `__imp_htons' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:4628: undefined reference to `__imp_htonl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:4629: undefined reference to `__imp_htonl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:4630: undefined reference to `__imp_htonl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:4631: undefined reference to `__imp_htonl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:4632: undefined reference to `__imp_htonl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj:REDACTED/networking/enet.h:4633: more undefined references to `__imp_htonl' follow C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_in6addr_lookup_host': REDACTED/networking/enet.h:5079: undefined reference to `__imp_getaddrinfo' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5080: undefined reference to `__imp_freeaddrinfo' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5089: undefined reference to `__imp_freeaddrinfo' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5095: undefined reference to `__imp_freeaddrinfo' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5100: undefined reference to `__imp_freeaddrinfo' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_address_get_host_ip_new': REDACTED/networking/enet.h:5117: undefined reference to `__imp_inet_ntop' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5122: undefined reference to `__imp_inet_ntop' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_address_get_host_new': REDACTED/networking/enet.h:5138: undefined reference to `__imp_htons' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5142: undefined reference to `__imp_getnameinfo' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_initialize': REDACTED/networking/enet.h:5733: undefined reference to `__imp_WSAStartup' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5738: undefined reference to `__imp_WSACleanup' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5742: undefined reference to `__imp_timeBeginPeriod' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_deinitialize': REDACTED/networking/enet.h:5747: undefined reference to `__imp_timeEndPeriod' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5748: undefined reference to `__imp_WSACleanup' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_host_random_seed': REDACTED/networking/enet.h:5752: undefined reference to `__imp_timeGetTime' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_address_set_host_old': REDACTED/networking/enet.h:5781: undefined reference to `__imp_gethostbyname' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5784: undefined reference to `__imp_inet_pton' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5793: undefined reference to `__imp_htonl' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_address_get_host_ip_old': REDACTED/networking/enet.h:5800: undefined reference to `__imp_inet_ntop' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_address_get_host_old': REDACTED/networking/enet.h:5811: undefined reference to `__imp_gethostbyaddr' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_socket_bind': REDACTED/networking/enet.h:5830: undefined reference to `__imp_htons' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5839: undefined reference to `__imp_bind' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_socket_get_address': REDACTED/networking/enet.h:5846: undefined reference to `__imp_getsockname' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5851: undefined reference to `__imp_ntohs' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_socket_listen': REDACTED/networking/enet.h:5858: undefined reference to `__imp_listen' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_socket_create': REDACTED/networking/enet.h:5862: undefined reference to `__imp_socket' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_socket_set_option': REDACTED/networking/enet.h:5871: undefined reference to `__imp_ioctlsocket' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5876: undefined reference to `__imp_setsockopt' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5880: undefined reference to `__imp_setsockopt' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5884: undefined reference to `__imp_setsockopt' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5888: undefined reference to `__imp_setsockopt' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5892: undefined reference to `__imp_setsockopt' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj:REDACTED/networking/enet.h:5896: more undefined references to `__imp_setsockopt' follow C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_socket_get_option': REDACTED/networking/enet.h:5919: undefined reference to `__imp_getsockopt' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_socket_connect': REDACTED/networking/enet.h:5935: undefined reference to `__imp_htons' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5939: undefined reference to `__imp_connect' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5940: undefined reference to `__imp_WSAGetLastError' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_socket_accept': REDACTED/networking/enet.h:5952: undefined reference to `__imp_accept' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5960: undefined reference to `__imp_ntohs' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_socket_shutdown': REDACTED/networking/enet.h:5968: undefined reference to `__imp_shutdown' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_socket_destroy': REDACTED/networking/enet.h:5973: undefined reference to `__imp_closesocket' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_socket_send': REDACTED/networking/enet.h:5985: undefined reference to `__imp_htons' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5990: undefined reference to `__imp_WSASendTo' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:6000: undefined reference to `__imp_WSAGetLastError' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_socket_receive': REDACTED/networking/enet.h:6011: undefined reference to `__imp_WSARecvFrom' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:6021: undefined reference to `__imp_WSAGetLastError' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:6036: undefined reference to `__imp_ntohs' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_socketset_select': REDACTED/networking/enet.h:6049: undefined reference to `__imp_select' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj: in function `enet_socket_wait': REDACTED/networking/enet.h:6071: undefined reference to `__imp_select' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:6083: undefined reference to `__WSAFDIsSet' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:6087: undefined reference to `__WSAFDIsSet' C:\Program Files\JetBrains\CLion 2024.2.1\bin\mingw\bin/ld.exe: CMakeFiles/client.dir/main.cpp.obj:main.cpp:(.rdata$.refptr.in6addr_any[.refptr.in6addr_any]+0x0): undefined reference to `in6addr_any' collect2.exe: error: ld returned 1 exit status ninja: build stopped: subcommand failed. ```Windows PC 2 (failure)
``` C:\Windows\system32\cmd.exe /C "cd . && REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin\g++.exe -g CMakeFiles/server.dir/main.cpp.obj -o server.exe -Wl,--out-implib,libserver.dll.a -Wl,--major-image-version,0,--minor-image-version,0 -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && C:\Windows\system32\cmd.exe /C "cd /D F:\Documents\code\school\semester_7\cpp-group-h\POCs\networking\server\cmake-build-debug && C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noprofile -executionpolicy Bypass -file REDACTED/.vcpkg-clion/vcpkg/scripts/buildsystems/msbuild/applocal.ps1 -targetBinary REDACTED/networking/server/cmake-build-debug/server.exe -installedDir REDACTED/.vcpkg-clion/vcpkg/installed/x64-mingw-dynamic/debug/bin -OutVariable out"" REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_crc32': REDACTED/networking/enet.h:1527: undefined reference to `__imp_htonl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_protocol_handle_connect': REDACTED/networking/enet.h:1801: undefined reference to `__imp_ntohl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:1836: undefined reference to `__imp_ntohs' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:1837: undefined reference to `__imp_ntohl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:1838: undefined reference to `__imp_ntohl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:1839: undefined reference to `__imp_ntohl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:1840: undefined reference to `__imp_ntohl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:1841: undefined reference to `__imp_ntohl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj:REDACTED/networking/enet.h:1842: more undefined references to `__imp_ntohl' follow REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_protocol_handle_connect': REDACTED/networking/enet.h:1915: undefined reference to `__imp_htons' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:1918: undefined reference to `__imp_htonl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:1919: undefined reference to `__imp_htonl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:1920: undefined reference to `__imp_htonl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:1921: undefined reference to `__imp_htonl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:1922: undefined reference to `__imp_htonl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj:REDACTED/networking/enet.h:1923: more undefined references to `__imp_htonl' follow REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_protocol_handle_send_reliable': REDACTED/networking/enet.h:1939: undefined reference to `__imp_ntohs' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_protocol_handle_send_unsequenced': REDACTED/networking/enet.h:1961: undefined reference to `__imp_ntohs' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:1967: undefined reference to `__imp_ntohs' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_protocol_handle_send_unreliable': REDACTED/networking/enet.h:2006: undefined reference to `__imp_ntohs' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_protocol_handle_send_fragment': REDACTED/networking/enet.h:2030: undefined reference to `__imp_ntohs' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj:REDACTED/networking/enet.h:2037: more undefined references to `__imp_ntohs' follow REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_protocol_handle_send_fragment': REDACTED/networking/enet.h:2049: undefined reference to `__imp_ntohl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2050: undefined reference to `__imp_ntohl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2051: undefined reference to `__imp_ntohl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2052: undefined reference to `__imp_ntohl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_protocol_handle_send_unreliable_fragment': REDACTED/networking/enet.h:2133: undefined reference to `__imp_ntohs' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2141: undefined reference to `__imp_ntohs' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2158: undefined reference to `__imp_ntohl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2159: undefined reference to `__imp_ntohl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2160: undefined reference to `__imp_ntohl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2161: undefined reference to `__imp_ntohl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_protocol_handle_bandwidth_limit': REDACTED/networking/enet.h:2257: undefined reference to `__imp_ntohl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj:REDACTED/networking/enet.h:2262: more undefined references to `__imp_ntohl' follow REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_protocol_handle_acknowledge': REDACTED/networking/enet.h:2335: undefined reference to `__imp_ntohs' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2378: undefined reference to `__imp_ntohs' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_protocol_handle_verify_connect': REDACTED/networking/enet.h:2422: undefined reference to `__imp_ntohl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2425: undefined reference to `__imp_ntohl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2426: undefined reference to `__imp_ntohl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2427: undefined reference to `__imp_ntohl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2441: undefined reference to `__imp_ntohs' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2445: undefined reference to `__imp_ntohl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2457: undefined reference to `__imp_ntohl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2470: undefined reference to `__imp_ntohl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2471: undefined reference to `__imp_ntohl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_protocol_handle_incoming_commands': REDACTED/networking/enet.h:2492: undefined reference to `__imp_ntohs' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2593: undefined reference to `__imp_ntohs' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2684: undefined reference to `__imp_ntohs' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_protocol_send_acknowledgements': REDACTED/networking/enet.h:2801: undefined reference to `__imp_htons' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:2807: undefined reference to `__imp_htons' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_protocol_send_outgoing_commands': REDACTED/networking/enet.h:3171: undefined reference to `__imp_htons' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:3193: undefined reference to `__imp_htons' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_peer_throttle_configure': REDACTED/networking/enet.h:3436: undefined reference to `__imp_htonl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:3437: undefined reference to `__imp_htonl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:3438: undefined reference to `__imp_htonl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_peer_send': REDACTED/networking/enet.h:3597: undefined reference to `__imp_htons' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:3600: undefined reference to `__imp_htons' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:3630: undefined reference to `__imp_htons' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:3631: undefined reference to `__imp_htonl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:3632: undefined reference to `__imp_htonl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:3633: undefined reference to `__imp_htonl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:3634: undefined reference to `__imp_ntohl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:3653: undefined reference to `__imp_htons' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:3657: undefined reference to `__imp_htons' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:3661: undefined reference to `__imp_htons' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_peer_disconnect_now': REDACTED/networking/enet.h:3939: undefined reference to `__imp_htonl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_peer_disconnect': REDACTED/networking/enet.h:3969: undefined reference to `__imp_htonl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_peer_setup_outgoing_command': REDACTED/networking/enet.h:4075: undefined reference to `__imp_htons' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:4079: undefined reference to `__imp_htons' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:4083: undefined reference to `__imp_htons' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_peer_queue_incoming_command': REDACTED/networking/enet.h:4286: undefined reference to `__imp_ntohs' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_host_connect': REDACTED/networking/enet.h:4625: undefined reference to `__imp_htons' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:4628: undefined reference to `__imp_htonl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:4629: undefined reference to `__imp_htonl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:4630: undefined reference to `__imp_htonl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:4631: undefined reference to `__imp_htonl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:4632: undefined reference to `__imp_htonl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj:REDACTED/networking/enet.h:4633: more undefined references to `__imp_htonl' follow REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_in6addr_lookup_host': REDACTED/networking/enet.h:5079: undefined reference to `__imp_getaddrinfo' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5080: undefined reference to `__imp_freeaddrinfo' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5089: undefined reference to `__imp_freeaddrinfo' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5095: undefined reference to `__imp_freeaddrinfo' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5100: undefined reference to `__imp_freeaddrinfo' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_address_get_host_ip_new': REDACTED/networking/enet.h:5117: undefined reference to `__imp_inet_ntop' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5122: undefined reference to `__imp_inet_ntop' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_address_get_host_new': REDACTED/networking/enet.h:5138: undefined reference to `__imp_htons' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5142: undefined reference to `__imp_getnameinfo' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_initialize': REDACTED/networking/enet.h:5733: undefined reference to `__imp_WSAStartup' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5738: undefined reference to `__imp_WSACleanup' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5742: undefined reference to `__imp_timeBeginPeriod' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_deinitialize': REDACTED/networking/enet.h:5747: undefined reference to `__imp_timeEndPeriod' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5748: undefined reference to `__imp_WSACleanup' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_host_random_seed': REDACTED/networking/enet.h:5752: undefined reference to `__imp_timeGetTime' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_address_set_host_old': REDACTED/networking/enet.h:5781: undefined reference to `__imp_gethostbyname' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5784: undefined reference to `__imp_inet_pton' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5793: undefined reference to `__imp_htonl' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_address_get_host_ip_old': REDACTED/networking/enet.h:5800: undefined reference to `__imp_inet_ntop' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_address_get_host_old': REDACTED/networking/enet.h:5811: undefined reference to `__imp_gethostbyaddr' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_socket_bind': REDACTED/networking/enet.h:5830: undefined reference to `__imp_htons' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5839: undefined reference to `__imp_bind' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_socket_get_address': REDACTED/networking/enet.h:5846: undefined reference to `__imp_getsockname' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5851: undefined reference to `__imp_ntohs' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_socket_listen': REDACTED/networking/enet.h:5858: undefined reference to `__imp_listen' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_socket_create': REDACTED/networking/enet.h:5862: undefined reference to `__imp_socket' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_socket_set_option': REDACTED/networking/enet.h:5871: undefined reference to `__imp_ioctlsocket' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5876: undefined reference to `__imp_setsockopt' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5880: undefined reference to `__imp_setsockopt' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5884: undefined reference to `__imp_setsockopt' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5888: undefined reference to `__imp_setsockopt' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5892: undefined reference to `__imp_setsockopt' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj:REDACTED/networking/enet.h:5896: more undefined references to `__imp_setsockopt' follow REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_socket_get_option': REDACTED/networking/enet.h:5919: undefined reference to `__imp_getsockopt' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_socket_connect': REDACTED/networking/enet.h:5935: undefined reference to `__imp_htons' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5939: undefined reference to `__imp_connect' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5940: undefined reference to `__imp_WSAGetLastError' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_socket_accept': REDACTED/networking/enet.h:5952: undefined reference to `__imp_accept' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5960: undefined reference to `__imp_ntohs' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_socket_shutdown': REDACTED/networking/enet.h:5968: undefined reference to `__imp_shutdown' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_socket_destroy': REDACTED/networking/enet.h:5973: undefined reference to `__imp_closesocket' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_socket_send': REDACTED/networking/enet.h:5985: undefined reference to `__imp_htons' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:5990: undefined reference to `__imp_WSASendTo' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:6000: undefined reference to `__imp_WSAGetLastError' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_socket_receive': REDACTED/networking/enet.h:6011: undefined reference to `__imp_WSARecvFrom' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:6021: undefined reference to `__imp_WSAGetLastError' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:6036: undefined reference to `__imp_ntohs' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_socketset_select': REDACTED/networking/enet.h:6049: undefined reference to `__imp_select' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj: in function `enet_socket_wait': REDACTED/networking/enet.h:6071: undefined reference to `__imp_select' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:6083: undefined reference to `__WSAFDIsSet' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: REDACTED/networking/enet.h:6087: undefined reference to `__WSAFDIsSet' REDACTED\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: CMakeFiles/server.dir/main.cpp.obj:main.cpp:(.rdata$.refptr.in6addr_any[.refptr.in6addr_any]+0x0): undefined reference to `in6addr_any' collect2.exe: error: ld returned 1 exit status ninja: build stopped: subcommand failed. ```