Preprocessor Settings ==> Pre-fix Text

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Preprocessor Settings ==> Pre-fix Text

970 次查看
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 回复数

753 次查看
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 项奖励
回复

753 次查看
ignisuti
Contributor IV

That did the trick. Thanks!

0 项奖励
回复