Tag Archives: VxWorks

VxWorks parse error near int

After a period of trial and error, I found that the vxWorks compiler is very sensitive to the definition of local variables, which must be defined at the beginning of the function, or compile error: parse Error near int, etc.
As shown in the figure:

Putting the iRet definition at the beginning solves this problem, as shown in the figure below: