You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I installed OpenSSL directly following the instructions in the install.txt file you get when cloning the git repository. It installed it seemingly with no issues and it is located in C:/Program Files/OpenSSL and C:/Program Files(x86)/OpenSSL. Inside each of those there are 4 folders: bin, html, include, lib.
In VSCode I'm using the code runner extension with the following command:
the "C:/Users/Batres/vcpkg/installed/x86-windows/include" is a different library called XTensor, which works completely fine as I have tested the code without OpenSSL and it outputs the correct results with no problem.
I have also tried these commands, all yeilding the same error. I have also tried running all the same commands through a terminal with admin priviliges and it gives the same error. I even copied the folder to a different directory inside my /Documents/ folder and it still didn't help. My compiler is mingw and I'm on Windows 11.
This last one returns a different error. Insted of being acces denied it seems like none of the functions or variables that I call inside my code are recognised, so these are the errors: undefined reference to `EVP_MD_CTX_new', or any other functions or variables I call, my code is the following:
Ignore all the other #includes, they are for different functions that work with no issue. As you can probably see I have some python code commented above my C++ code. Thats simply because it's a function I tried transalting using ChatGPT, but that's not relevant to the error.
The weird thing is that even though it says access denied when compliling, Intellisense can acess the files just fine, I can right click on the functions and "Go to Definition" and it takes me to my C:/Program Files/OpenSSL/include/openssl/ folder.
If anyone knows how to fix the error I would be very thankful.
The text was updated successfully, but these errors were encountered:
This looks incorrect - you need to duplicate the -I before each include directory. Also this command is actually directly compiling and linking, so you'll also need the -L option to find the libcrypto/libssl. Also you need to use -lcrypto for EVP functions and not -lssl.
So I installed OpenSSL directly following the instructions in the install.txt file you get when cloning the git repository. It installed it seemingly with no issues and it is located in C:/Program Files/OpenSSL and C:/Program Files(x86)/OpenSSL. Inside each of those there are 4 folders: bin, html, include, lib.
In VSCode I'm using the code runner extension with the following command:
the "C:/Users/Batres/vcpkg/installed/x86-windows/include" is a different library called XTensor, which works completely fine as I have tested the code without OpenSSL and it outputs the correct results with no problem.
I have also tried these commands, all yeilding the same error. I have also tried running all the same commands through a terminal with admin priviliges and it gives the same error. I even copied the folder to a different directory inside my /Documents/ folder and it still didn't help. My compiler is mingw and I'm on Windows 11.
and
This last one returns a different error. Insted of being acces denied it seems like none of the functions or variables that I call inside my code are recognised, so these are the errors: undefined reference to `EVP_MD_CTX_new', or any other functions or variables I call, my code is the following:
Ignore all the other #includes, they are for different functions that work with no issue. As you can probably see I have some python code commented above my C++ code. Thats simply because it's a function I tried transalting using ChatGPT, but that's not relevant to the error.
The weird thing is that even though it says access denied when compliling, Intellisense can acess the files just fine, I can right click on the functions and "Go to Definition" and it takes me to my C:/Program Files/OpenSSL/include/openssl/ folder.
If anyone knows how to fix the error I would be very thankful.
The text was updated successfully, but these errors were encountered: