Oracle Solaris Studio 12.2:C++ 用户指南

示例

以下编译器命令链接 libfoo.a,即使 libfoo.so 存在也是如此,所有其他库都是动态链接的:


example% CC a.o –Bstatic –lfoo –Bdynamic