mac libtool -s -o

libtool -s -o libliveMedia.a  \

Media.o MediaSource.o Fr


报错:

libtool: unrecognized option `-s'
libtool: Try `libtool --help' for more information.
make: *** [libliveMedia.a] Error 1




解决方案:替换为


ar rcs my_library.a file1.o file2.o
 

参见

http://stackoverflow.com/questions/11344547/how-do-i-compile-a-static-library

你可能感兴趣的:(c)