본문 바로가기
BackEnd FrontEnd/C , C++

linux C/C++ openssl 설치 후 빌드에러

by forkballpitch 2020. 1. 22.
728x90
728x90

libssl-dev / openssl 설치 후에 빌드시 아래 에러가 나오면

 

undefined reference to `OPENSSL_init_ssl'
undefined reference to `OPENSSL_init_ssl'

 

아래 결과로 나온 경로를 빌드경로에 작성해준다 (예: SSL = -L/usr/local/lib -lssl -lcrypto )

 

$ pkg-config openssl --libs 

 

  -L/usr/local/lib -lssl -lcrypto

 

 

 

 


 

 

 

 

728x90
728x90