Prefix Text in CW6.3

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

Prefix Text in CW6.3

1,608 次查看
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.

标签 (1)
0 项奖励
回复
5 回复数

1,162 次查看
CrasyCat
Specialist III

Hello

 

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


CrasyCat

0 项奖励
回复

1,162 次查看
ignisuti
Contributor IV

It's Coldfire V1.
MCF51CN128

0 项奖励
回复

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

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

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