Preprocessor Settings ==> Pre-fix Text

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

Preprocessor Settings ==> Pre-fix Text

458 Views
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.

Labels (1)
0 Kudos
2 Replies

241 Views
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 Kudos

241 Views
ignisuti
Contributor IV

That did the trick. Thanks!

0 Kudos