Back-End build process error: expected expression before ';'
Posted: 20 August 2009, 19:08 PM
When y2 = y1, obviously slope = INF. A backend build error arises as a result.
The following is a generic function which demonstrates the problem. Both of the last two lines of the function are required for the error to arise. Additionally, the numerator of 'm' is necessary; if m is instead
1.0 / ( y2 - y1 ), the error does not arise.
The device is a 1280n.
The following is a generic function which demonstrates the problem. Both of the last two lines of the function are required for the error to arise. Additionally, the numerator of 'm' is necessary; if m is instead
1.0 / ( y2 - y1 ), the error does not arise.
The device is a 1280n.
Code: Select all
function A ( byval D as single ) as single
const C as single = 20.0
const x2 as single = 20.0, x1 as single = 10.0
const y2 as single = 1.0, y1 as single = 1.0
const m as single = ( x2 - x1 ) / ( y2 - y1 )
const b as single = y2 - (m*y1)
A = m * abs(D) + b
A = A * C
end function
Code: Select all
biped_joint_controllers_2legs.c:25: error: expected expression before ';' token
make: *** [biped_joint_controllers_2legs.o] Error 1
make: Leaving directory `C:/Program Files/ZBasic/zx_rEudRJ'
biped joint controllers 2legs.bas:21: Internal Error: no means to generate code for expression