c++ - Cyassl-2.4.2 缺少 libcyassl.a 文件

标签 c++ c unix ssl wolfssl

我已经在我的 unix 机器上构建并安装了 Cyassl-2.4.2 以用于我的一个项目;然而,当我尝试编译我的 c 项目时,编译器找不到 libcyassl.a 文件。我在 Cyassl.2.4.2 文件夹中搜索了很多次,但我自己找不到该文件。这个文件在哪里?我错过了构建/安装 Cyassl.2.4.2 的步骤吗?谢谢!

最佳答案

我在这里成功构建并安装了 CyaSSL 2.4.2,这就是我得到的:

~/cyassl$ 查找 . -iname "*.a"

./src/.libs/libcyassl.a

~/cyassl$ ls/usr/local/lib/

libcyassl.a libcyassl.la libcyassl.so libcyassl.so.3 libcyassl.so.3.0.3


使用的构建过程是:

./autogen.sh

./配置

制作

sudo 进行安装

安装打印出来:


Libraries have been installed in: /usr/local/lib

If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the -LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to theLD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the LD_RUN_PATH' environment variable during linking - use the-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages.


关于c++ - Cyassl-2.4.2 缺少 libcyassl.a 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20974965/

相关文章:

c++ - std::string 不将数据存储在连续内存位置的好处(C++ 11 之前)

c - Cast的立即操作数的含义

sockets - 在哪里放置 Unix 域 (AF_UNIX) 套接字的端点(文件)?

c - 模拟 UNIX 类型的 shell

c++ - SFINAE std::isfinite 和使用 std::is_arithmetic 的类似函数

c++ - std::vector::erase() 抛出的异常

c++ - 如何在char []中获取两个由空格分隔的整数?

c - 如何优化简单的循环/旋转缓冲区/FIFO 处理以提高性能

c - 从文件读取并使用 strtok while 循环仅打印每行的第一个单词

linux - 我需要 grep 特定行数的数据,例如第 1 行、第 6 行