gpt4 book ai didi

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

转载 作者:塔克拉玛干 更新时间:2023-11-03 07:24:47 25 4
gpt4 key购买 nike

我已经在我的 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 the
LD_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/

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