Build Static Libary
ar ru xxx.a *.o ranlib xxx.a//not necessary
Build Dynamic Libary
g++ -shared -fPIC -o xxx.so *.o