Keil Logo

RTX166 TINY: Can't Define Taskes 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


Last Reviewed: Thursday, February 25, 2021


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.