Run -> Add Configuration -> Launch file,生成launch.json
添加参数
"externalConsole": true,
"args": ["-n","../../test.text"]
[......]
Run -> Add Configuration -> Launch file,生成launch.json
添加参数
"externalConsole": true,
"args": ["-n","../../test.text"]
[......]
将两个库合并为一个,其实就是解开,获得所有的.o,然后再打包,这种方法当然也适合多个。
ar -x libabc.a
ar -x libxyz.a
ar -c libaz.a *.o
如何向一个.a中追加.o
ar rcs libabc.a *.o
2012.3.1更新:
其实搞复杂了,最简单的还是解压出各种.o,然后再合并:
ar x <library name 1>
ar x <library name 2>
......
ar cs &l[......]