For linux

1, gcc -c primitive.c -o primitive.o

2,ar -r primitive.a primitive.o

extract

ar -x primtive.a

For windows

cl primitive.c /c

lib  primitive.obj

Note, cl got /link option to pass parameters to link.exe


评论

该日志第一篇评论

发表评论

评论也有版权!