Closed jedenastka closed 6 years ago
Now I don't know how to use Code::Blocks so you'll need to look up some of these directions but I think you want to define the nt version of windows you are using with the preprocessor definitions _WIN32_WINNT and WINVER. For example for windows 7, -D_WIN32_WINNT=0x0601 -DWINVER=0x0601
. More info about this can be found here https://docs.microsoft.com/en-us/windows/desktop/WinProg/using-the-windows-headers.
And maybe link the library wsock32 just in case. For example, -lwsock32
. It's a windows library that you can found more info about here https://docs.microsoft.com/en-us/windows/desktop/winsock/windows-sockets-start-page-2 and here https://docs.microsoft.com/en-us/windows/desktop/api/_winsock/.
Not fixed, but I left Code::Blocks for now, sooo... Closing.
When I trying to buld this:
with Code::Blocks, I get this list of errors: