compile error in vopt.c



Hi,

I got error when I try to make gts-0.5.1:

"vopt.c", line 296: non-constant initializer: op "-"
"vopt.c", line 297: non-constant initializer: op "-"
"vopt.c", line 298: non-constant initializer: op "-"
"vopt.c", line 349: non-constant initializer: op "U-"
"vopt.c", line 349: non-constant initializer: op "U-"
"vopt.c", line 349: non-constant initializer: op "U-"


296:    GtsVector c = { e1[1]*e2[2] - e1[2]*e2[1],
297:                    e1[2]*e2[0] - e1[0]*e2[2],
298:                    e1[0]*e2[1] - e1[1]*e2[0] };


349:    GtsVector c = { - stn1, - stn2, - stn3};

The system I run on is SunOS 5.7

Any thoughts?


Thanks,

Changming





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]