Codewarrior11.1 Build configuration and Symbols issues

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Codewarrior11.1 Build configuration and Symbols issues

1,921 Views
林联伟
Contributor I

求教:

在Codewarrior11.1中通过Build configuration设置不同的编译选项(如ECU_1,ECU

_2),并在不同的编译选项中定义不同的宏定义(如在ECU_1中定义ECU_TYPE=1,如在ECU_2中定义ECU_TYPE=2)。目的是想通过编译选项来切换不同代码。按以上设置后经过测试发现:编译代码,功能正常。但是代码的高亮显示不会随着宏定义的值切换,比如选择编译选项ECU_1, ECU_TYPE=1的代码为激活状态,显示正常;切换到编译选项ECU_2,按道理应当ECU_TYPE=2的代码为激活状态,但是并没有,仍然是ECU_TYPE=1的代码为激活状态。请问大神,这个该怎么解决?或者有什么替代的方案?

效果如附件所示。

0 Kudos
2 Replies

1,781 Views
nxf58474
NXP Employee
NXP Employee

Hi,

 

Hope you are doing well. I understand you have some issues with codewarrior. Can you write your question in English? So I can have a better understanding of your situation.

 

Best Regards,

Ricardo

0 Kudos

1,781 Views
林联伟
Contributor I

Thank you for your reply, I have solved this problem by setting the option ‘Pereferences-> C / C ++-> Indexer-> Use active build configuration’.

0 Kudos