Problems with directives (ifndef and ifdef)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problems with directives (ifndef and ifdef)

411 Views
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.

Labels (1)
0 Kudos
1 Reply

309 Views
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 Kudos