Openssl 프로그래밍에 관한 질문입니다.

tomylove의 이미지

IBM 사이트를 참조하면서

Openssl 프로그래밍을 하고 있습니다.

#include "openssl/bio.h"
#include "openssl/ssl.h"
#include "openssl/err.h"
#include "stdio.h"

SSL_load_error_strings();
ERR_load_BIO_strings();
OpenSSL_add_all_algorithms();

int main()
{
return 0;
}

우선 이정도 가지만 코딩하여 놓고 컴파일 해보았는데

이렇게 에러가 뜹니다.
openssl.c:6: warning: data definition has no type or storage class
openssl.c:6: error: conflicting types for ‘SSL_load_error_strings’
/usr/include/openssl/ssl.h:1340: error: previous declaration of ‘SSL_load_error_strings’ was here
openssl.c:7: warning: data definition has no type or storage class
openssl.c:7: error: conflicting types for ‘ERR_load_BIO_strings’
/usr/include/openssl/bio.h:703: error: previous declaration of ‘ERR_load_BIO_strings’ was here
openssl.c:8: warning: data definition has no type or storage class
openssl.c:8: error: conflicting types for ‘OPENSSL_add_all_algorithms_noconf’
/usr/include/openssl/evp.h:777: error: previous declaration of ‘OPENSSL_add_all_algorithms_noconf’ was here

방금 다시 확인해 보니 ㅡㅡ;;

헤더 파일은 다 있는데 왜 이러는지;;

잘못 설치 한거 같은데;;