I downloaded a project that has these 2 lines in it:
#include <winsock2.h>
#include <Afxwin.h>
I’m confused about on how to compile this, because my standard compiler can’t find the selected files.
What do I need to to configure my compiler’s search path in order to successfully compile this?
The compiler I tried it with is Dev-C++.
Edit: I’m guessing I have to configure certain libraries to be used when compiling (but which?)
Are you building on Windows?
These are Microsoft includes files. If you have Visual Studio, winsock should be available. But for afx (MFC), you need a commercial edition I believe.
If you have a commercial Visual Studio and it still can’t find them, it’s just a matter of configuring the compiler to include the proper directories (but it should have come that way out of the box).