gpt4 book ai didi

在包含中使用 ssl 进行编译

转载 作者:行者123 更新时间:2023-11-30 17:25:42 25 4
gpt4 key购买 nike

I am trying to compile a small .c file that has the following includes:

#include <openssl/bio.h>
#include <openssl/err.h>
#include <openssl/rand.h>
#include <openssl/ssl.h>
#include <openssl/x509v3.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

gcc -Wall -o ssl-server SSL-Server.c -L/usr/lib -lssl -lcrypto

最佳答案

i 've error cimpilation
/tmp/ccEVqqFp.o: dans la fonction « main »:
client.c:(.text+0xa4): référence indéfinie vers « init_OpenSSL »
client.c:(.text+0xd7): référence indéfinie vers « handle_error »
client.c:(.text+0x11b): référence indéfinie vers « handle_error »
collect2: error: ld returned 1 exit status

关于在包含中使用 ssl 进行编译,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27003756/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com