Prefix Text in CW6.3

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

Prefix Text in CW6.3

1,610 Views
ignisuti
Contributor IV

I have a project_defs.h file that I want included into every file of my project. Can I use the Prefix Text option for this?

 

I tried adding #include "project_defs.h" to the Prefix Text field, but got tons of "preprocessor syntax error" messages.

Labels (1)
0 Kudos
Reply
5 Replies

1,164 Views
CrasyCat
Specialist III

Hello

 

  Which CPU are you targeting (HC08, Coldfire V1, ..)


CrasyCat

0 Kudos
Reply

1,164 Views
ignisuti
Contributor IV

It's Coldfire V1.
MCF51CN128

0 Kudos
Reply

1,164 Views
CrasyCat
Specialist III

Hello

 

Inside of the Prefix Text edit box you need to specify

    #include "my_include.h"

If your prefix file name is my_include.h.

 

Then next question is where is that file located?

Is the path to this include file specified in the list of user Paths inside of the Access Paths list box?

 

CrasyCat

0 Kudos
Reply

1,164 Views
ignisuti
Contributor IV

Yes, I've placed this file in my Sources folder which is the Access Paths.

 

Well, my #include "project_defs.h" command should work then...?

0 Kudos
Reply

1,164 Views
ignisuti
Contributor IV

Hold on...

I'm almost too embarrassed to say this, but for the sake of honesty... I forgot the qoutation marks.  :robotsurprised:

 

It's working fine now.  Sorry to waste your time on this one.

0 Kudos
Reply