I have a VS project (using the 2019 community edition), it's just 'hello world' in c++ that includes another header (that is not used). No matter what I try, the compiler cannot find the header. The header file is in the same directory as the .sln and 'source.cpp' files, I've tried using angle brackets and just plain quote marks, it says the 'header.hpp' file is included in the project, but I still get the following error (when I press build):
1>Source.obj : error LNK2001: unresolved external symbol _closesocket@4
1>C:\Users\hidden-r3d\source\repos\requests\Debug\requests.exe : fatal error LNK1120: 1 unresolved externals
1>Done building project "requests.vcxproj" -- FAILED.
My code is as follows:
#include <iostream>
#include "header.hpp"
int main()
{
std::cout << "Hello World!\n";
return 0;
}