CW 10.3 Code analysis with command line defines

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

CW 10.3 Code analysis with command line defines

ソリューションへジャンプ
1,555件の閲覧回数
mikestich
Contributor II

If types/code or whatever are switched in or out via a command line define (-d XXX in the project Properties->C/C++ Build->Settings->Language settitngs->Other flags) the IDE does not seem to recognize that that they are set.  It seems to assume they are not defined.  It works fine if they are set in an include file. Is there any way to get this to work correctly?

ラベル(1)
1 解決策
1,420件の閲覧回数
BlackNight
NXP Employee
NXP Employee

You need to define it throught the compiler > Preprocessor settings.

See

Compiler Defines and Eclipse Editor Highlighting | MCU on Eclipse

I hope this helps.

元の投稿で解決策を見る

3 返答(返信)
1,420件の閲覧回数
mikestich
Contributor II

But wait!  I went and actually looked in my project and there is a "Symbols" tab under the Paths and Symbols resource.  Moved all my -d defines there and all works great now, complete with appropriate highlighting in the editor.  Thanks much!

1,421件の閲覧回数
BlackNight
NXP Employee
NXP Employee

You need to define it throught the compiler > Preprocessor settings.

See

Compiler Defines and Eclipse Editor Highlighting | MCU on Eclipse

I hope this helps.

1,420件の閲覧回数
mikestich
Contributor II

Unfortunately I'm using the Freescale Coldfire. I have my defines set up exactly how the link you reference says I should. However, it says that the solution that works in other cases does not exist for that compiler.  Looks like I'm stuck with the Editor not knowing about the defines.  Thanks for the pointer.

0 件の賞賛
返信