Keil™, An ARM® Company

Technical Support

RTX166 TINY: CAN'T DEFINE TASKS IN EC++


Information in this article applies to:

  • C166 All Versions

SYMPTOM

When I try to define an RTX166 task, in a .cpp file, the compiler complains

error: expected a {

CAUSE

The EC++ compiler functions as an add-on to the C166 compiler, not as a stand-alone tool. All output from EC++ gets run through C166 before linking.

RESOLUTION

Simply define your _task_ and interrupt functions in a .C file. Everything winds up in the C compiler eventually.

SEE ALSO

FORUM THREADS

The following Discussion Forum threads may provide information related to this topic.

Last Reviewed: Monday, October 16, 2006


Did this article provide the answer you needed?
 
Yes
No
Not Sure