I recently installed MinGW to be able to compile in C ++ on Visual Studio Code. Normal compilation works, but now I would need to run code containing sockets. To do this, I should include the following compiler and linker commands inserted in Dev-C ++ on VS Code.
Compiler commands: -lwsock32
Linker commands: -static-libgcc -std=c99 -lwsock32
What is the correct way to do this? Thanks in advance!