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.

[参考译文] CCS:使用不同的符号定义,以便在项目生成中使用不同的库文件生成

Guru**** 2568565 points


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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/595677/ccs-defined-with-different-symbol-to-build-with-different-library-files-in-project-building

工具/软件:Code Composer Studio

您好,

我想知道,如何使用定义的符号作为标志来让项目选择要构建的不同文件?

因为我有两个不同的库文件需要添加到我的项目中,但我想在属性中使用符号,以便我选择所需的库文件。

例如:

项目中有一个.lib和b.lib文件。

如果定义的符号添加'build_a'变量,则项目将不会合并b.lib。

如果定义的符号更改为'build_B'变量,则项目将生成b.lib,而不会生成a.lib。

如何做到这一点?

非常感谢您的回答。