Documentation Home
>
Sun Studio 12:C++ 用户指南
>
第 4 部分 附录
>
附录 A C++ 编译器选项
>
A.2 选项参考
>
A.2.4 –Bbinding
>
A.2.4.1 值
> 示例
Sun Studio 12:C++ 用户指南
Previous
: 交互
Next
: 警告
示例
以下编译器命令链接
lib
foo
.a
(即使
lib
foo
.so
存在也是如此),所有其他库都是动态链接:
example%
CC a.o –Bstatic –lfoo –Bdynamic
Previous
: 交互
Next
: 警告
© 2010, Oracle Corporation and/or its affiliates