Answer the question
In order to leave comments, you need to log in
How to link a library in Visual Studio?
You need to use the openssl library in your project (C language), Google gives usage examples everywhere with
for example #include < openssl/sha256.h >
I downloaded the archive with the openssl library, but I don’t understand how to make it attach to the project.
Answer the question
In order to leave comments, you need to log in
Right click on the project, properties menu. There you are interested in two parameters.
1. C / C ++ → "General" in the right list of properties, the first one is needed: "Additional Include Directories". Specify the path to the folder with *.h files from your library. This is usually the include folder.
2. Linker (Linker) → "General" in the right list "Additional Library Directories" (Additional Library Directories). Specify the path to the folder with *.lib files from your library. Usually this is the Lib folder.
After that, you can add #include and use functions from the library.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question