Problems with directives (ifndef and ifdef)

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

Problems with directives (ifndef and ifdef)

866 次查看
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 回复

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