Answer the question
In order to leave comments, you need to log in
Why is #pragma comment (lib) not parsed?
#pragma comment (lib, "Ws2_32.lib")
added to the code, but still throwing errors.
C:\Users\A-TECH~1\AppData\Local\Temp\ccMoTqr8.o main.cpp:(.text+0x4f): undefined reference to `__imp_WSAStartup'
C:\Users\A-TECH~1\AppData\Local\Temp\ccMoTqr8.o main.cpp:(.text+0x101): undefined reference to `__imp_WSACleanup'
C:\Users\A-TECH~1\AppData\Local\Temp\ccMoTqr8.o main.cpp:(.text+0x137): undefined reference to `__imp_socket'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question