What lib file defines ERR_clear_error, TLS_method... in boost or openssl for c++?
I'm trying to compile some code involving boost and openssl to use HTTPS but am unable to link. Here are the headers I included: #include <boost/beast/core.hpp> #include <boost/beast/http.hpp> #include <boost/beast/version.hpp> #include <boost/asio/connect.hpp> #include <boost/asio/ip/tcp.hpp> #include <boost/asio/ssl.hpp> #include <cstdlib> #include <iostream> #include <string> I installed boost 1.760 in Windows 10 if that matters. I installed openssl 1.1. I'm compiling using mingw32-g++ through CodeBlocks. I linked to the following libraries: -s -lglut32 -lopengl32 -lglu32 -lwinmm -lgdi32 "C:\Program Files (x86)\CodeBlocks\MinGW\lib\glut32.lib" -lgdiplus -lws2_32 "C:\Program Files (x86)\CodeBlocks\MinGW\boost_1_76_0\stage\lib\libboost_system-vc142-mt-x64-1_76.lib" "C:\Program Files (x86)\CodeBlocks\MinGW\openssl\lib\libcrypto.lib" "C:\Program Files (x86)\CodeBlocks\MinGW\openssl\lib\libssl.lib" -mwindows These are the error messages: ||=== Build: Release in UAV Simulator (compiler: GNU GCC Compiler) ===| obj\Release\io\networking\HTTPDownloader.o:HTTPDownloader.cpp|| undefined reference to `ERR_clear_error'| obj\Release\io\networking\HTTPDownloader.o:HTTPDownloader.cpp|| undefined reference to `TLS_method'| obj\Release\io\networking\HTTPDownloader.o:HTTPDownloader.cpp|| undefined reference to `SSL_CTX_new'| obj\Release\io\networking\HTTPDownloader.o:HTTPDownloader.cpp|| undefined reference to `SSL_CTX_set_options'| obj\Release\io\networking\HTTPDownloader.o:HTTPDownloader.cpp|| undefined reference to `ERR_clear_error'| obj\Release\io\networking\HTTPDownloader.o:HTTPDownloader.cpp|| undefined reference to `SSL_CTX_set_default_verify_paths'| obj\Release\io\networking\HTTPDownloader.o:HTTPDownloader.cpp|| undefined reference to `ERR_get_error'| obj\Release\io\networking\HTTPDownloader.o:HTTPDownloader.cpp|| undefined reference to `ERR_get_error'| ||error: ld returned 1 exit status| ||=== Build failed: 9 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|