Problems with directives (ifndef and ifdef)

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

Problems with directives (ifndef and ifdef)

871件の閲覧回数
norbertoj
Contributor III

I have some problems with infndef. I have a struct type 'structX'  in a header, and I have another declaration in another header. I put a ifndef with USE_TO_TEST for the structX of the second header. USE_TO_TEST  is defined. I compiled and I got the next Error "Conflict type of 'structX'. I don't know why there is a conflict in the second header; the ifndef is not TRUE.

ラベル(1)
0 件の賞賛
返信
1 返信

769件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Norberto,

Which version of CW do you used ?

Could you please create one simple project,  then copy and paste your

structure file , send to me , i can check it on my side .

BRAlice

0 件の賞賛
返信