According to the library's author "Since there are no external dependencies, not even dependencies within the library itself, all you need is to include the header of the hashing algorithm of your choice and add the identically named .cpp to your project. That means if you want to add SHA256 hashing to your C++ program, you only have to include sha256.h and sha256.cpp in your project.
"
Visual Studio: How to use libraries in C++ project
![](https://techprofile.blob.core.windows.net/images/CFIB-zqfp0esdKGTs5ax_A.png?8DA8BE)
thebluetropics
1,046
Reputation points
I was building a Win32 project that depends on this hashing library.
What I've tried:
- I created an
include
folder inside the project, and then putsha256.h
andsha256.cpp
to the folder. - Add the
include
folder to the Additional Include Libraries
When I build the project, it throws me build errors like LNK2019 and LNK1120...
This said, I've build and run the program successfully under these condition:
- I included all files under
include
folder to the project/solution
As far as I know, we don't include library files to the project...
How can I build the project without including all library files inside include
folder?
Accepted answer
-
RLWA32 43,381 Reputation points
2022-10-18T11:51:54.123+00:00