- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我已经在我的 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'
LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the
flag during linking and do at least one of the following:
- add LIBDIR to theLD_RUN_PATH' environment variable
-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf'
during linking
- use theSee 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/
我是一名优秀的程序员,十分优秀!