Closed Pamnki closed 7 years ago
Are you building on Windows 7 ? I was able to build on Windows 7 by using the Windows 8.1 SDK
If not, make sure your linker paths are setup correct. That is, you need to link against the included rapidjson and crypto directories:
C:\dimecoin\projects\xmr-stak-cpu\crypto;C:\dimecoin\projects\xmr-stak-cpu\rapidjson;%(AdditionalLibraryDirectories)
Im using Windows 10. I tried to put
D:\Users\PwnK\Downloads\xmr-stak-cpu\crypto;D:\Users\PwnK\Downloads\xmr-stak-cpu\rapidjson;%(AdditionalLibraryDirectories)
to Additional Library Directories but it didn't fix the problem.
Did you add files as existing items or as reference?
I added the files using File, New, Project From Existing Code and chose Visual C++ and then I just chose the folder location.
ah, I see, I just did new project. you also need to link again 'ws2_32.lib'
That fixed the problem. Thank you!
dimecoin - rapidjson is all header files, nothing to link against
crypto is c, but msvc will link it as long as it is added to the project.
Yea, I was wrong here. Those don't need to be in lib path. Just need to link against 'ws2_32.lib' and it should work.
thank you @dimecoin :)
I'm trying to compile this miner using VS 15 and I'm getting this error. Is there anything I'm missing?