Preprocessor Settings ==> Pre-fix Text

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

Preprocessor Settings ==> Pre-fix Text

1,026件の閲覧回数
ignisuti
Contributor IV

I'm transitioning from classic CodeWarrior 6.3 to the Eclipse IDE.

 

In the classic CodeWarrior, I use the pre-fix text box in the Standard Settings menu to include headers into every file of my project. I don't see this option in the Eclipse IDE. Please help.

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

809件の閲覧回数
CrasyCat
Specialist III

Hello

 

I assume you are building code for ColdFire MCU. Am I right?

 

If this is the case you can create a file containing all the includes you want to apply to all your source file (i.e. This file contains what you have previously specified in the Prefix Text edit box) and specify it as a prefix file.

 

You can specify that a file mydefine.h for example is a prefix file adding the option

  -prefix mydefine.h

in C/C++ Build > Settings > ColdFire Compiler > Language Settings > Other flags edit box.

 

CrasyCat

0 件の賞賛
返信

809件の閲覧回数
ignisuti
Contributor IV

That did the trick. Thanks!

0 件の賞賛
返信