编译步骤:
gcc -c *.c
编译静态库
ar -r libtest.a *.o
编译执行文件
gcc main.c -L libtest.a -o main
./main
https://www.cnblogs.com/huangxinzhen/p/4047051.html
linux 查看动态库以懒的文件 使用 ldd
久添加环境变量(影响当前用户)
#vim ~/.bashrc
export PATH="/opt/STM/STLinux-2.3/devkit/sh4/bin:$PATH"