mbedtls开发环境搭建

git clone https://github.com/ARMmbed/mbedtls.git
cd mbedtls
git branch -a
git checkout -b mbedtls-2.28 remotes/origin/mbedtls-2.28
make CFLAGS=-std=c99 SHARED=1 -j 4
make install
ln -s /usr/local/lib/libmbedtls.so /usr/lib64/libmbedtls.so.14
ln -s /usr/local/lib/libmbedcrypto.so /usr/lib64/libmbedcrypto.so.7
ln -s /usr/local/lib/libmbedx509.so.1 /usr/lib64/libmbedx509.so.1
gcc -std=c99 test.c -o test -lmbedtls -lmbedcrypto -lmbedx509

你可能感兴趣的:(经验&代码,c语言)