This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] 如何从指定的源文件生成库?

Guru**** 2350610 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/1230732/how-to-generate-a-library-from-specified-source-files

我想将我的一些.c 和.h 文件编译到一个库中(例如 .lib 或.A)为了允许他人使用、如何在 CCS 中执行此操作?

例如、我创建了一个项目、我想将该项目中的源文件编译为库、但不使用 main.c、我该怎么办?

谢谢。

此致、

沭阳

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的沭阳:

    创建新工程时、将 Output type (输出类型)设置为 Static Library (静态库):

    谢谢

    小标题