[root@localhost c]# cp libmy
libmy.a? ? ? libmyCalc.so? libmytest.a?
[root@localhost c]# cp? libmytest.a ./lib/
[root@localhost c]# cd lib
[root@localhost lib]# ll
total 12
-rwxrwxrwx. 1 root root 8001 Jul 11 07:43 libmyCalc.so
-rw-r--r--. 1 root root 1646 Jul 11 08:35 libmytest.a
[root@localhost lib]# cd ..
[root@localhost c]# gcc main.c lib/libmytest.a -o myap
[root@localhost c]# ll
total 48
drwxrwxrwx. 2 root root? 43 Jul 11 08:35 lib
-rw-r--r--. 1 root root 1646 Jul 11 06:33 libmy.a
-rwxr-xr-x. 1 root root 8001 Jul 11 08:11 libmyCalc.so
-rw-r--r--. 1 root root 1646 Jul 11 04:21 libmytest.a
-rw-r--r--. 1 root root? 118 Jul 11 04:20 main.c
-rw-r--r--. 1 root root 1544 Jul 11 08:10 main.o
-rwxr-xr-x. 1 root root 8510 Jul 11 08:36 myap
-rwxr-xr-x. 1 root root 8510 Jul 11 07:43 myapp
[root@localhost c]# ./myap
Hello, World!
[root@localhost c]#