Codewarrior For Coldfire __FILE__ and __LINE__ Symbols.

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

Codewarrior For Coldfire __FILE__ and __LINE__ Symbols.

2,227件の閲覧回数
Andypumphrey
Contributor I
I am using Codewarrior for Coldfire version 6.0.  I am compiling for the MCF5207.  I am wondering if the compiler supports the __FILE__ and __LINE__ symbols.  I tried it in my code, and it compiles OK, but something seems wrong.  I get weird pointers returned where I am using these.
 
  I appreciate any help.
ラベル(1)
タグ(1)
0 件の賞賛
返信
2 返答(返信)

1,090件の閲覧回数
Andypumphrey
Contributor I
Thank you for the help.  I got it working.  We had special printf functions written for the 68332 which I ported to Coldfire.  It turns out I needed some additional tweaking for the variable argument list.  It works great now.  Thanks again.
0 件の賞賛
返信

1,090件の閲覧回数
CompilerGuru
NXP Employee
NXP Employee
Yes, the compiler for ColdFire in CW does support those ANSI C defined macros.
In fact, I did not notice any C compiler which would not support them.
So I'm wondering how you tried to use them, and does a simple string literal like "test" work in places where __FILE__ fails for you? For me the description sounds like there is something else not working in your setup, so I think we need more information about how you use them.

Daniel
0 件の賞賛
返信