AnsweredAssumed Answered

Error: indentifier "xxx" is undefined

Question asked by cookiemonster on Sep 23, 2009
Latest reply on Sep 23, 2009 by SFernandez

Hi,

 

I am writing a multiprocessor program with VDK on TigerSHARC platform and I have encountered a problem which I don't understand why it appears.

I have set up an EventBit called START_PRODUCER and everything works fine until I move some code (for example: VDK::SetEventBit(kSTART_PRODUCER) from thread files generated by VDK to my own file. Then I get such an error:

 

"..\afm_message.cpp", line 87: cc0020:  error: identifier "kSTART_PRODUCER" is undefined
  VDK::SetEventBit(kSTART_PRODUCER);

 

It is weird because VDK.h is of cource included and the complier does not complain about unknown function SetEventBit. Posting semaphores also does not work, but passing messages works fine.

 

 

Thank you for your help.

Outcomes