Prefix Text in CW6.3

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

Prefix Text in CW6.3

1,611件の閲覧回数
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,165件の閲覧回数
CrasyCat
Specialist III

Hello

 

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


CrasyCat

0 件の賞賛
返信

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

It's Coldfire V1.
MCF51CN128

0 件の賞賛
返信

1,165件の閲覧回数
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,165件の閲覧回数
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,165件の閲覧回数
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 件の賞賛
返信