Hallo! My question again: I tried to declare sensors global, out of main(): Motor motor(Motor::B); LightSensor s(LightSensor::S3,false); int main(){ ... } make reports an error: /home/micha/legOS/util/makelx test.ds1 test.ds2 test.lx test.ds1: (...) (24 years ago, 17-Apr-01, to lugnet.robotics.rcx.legos)
I've found it. They must be declared as static: static LightSensor s(LightSensor::S3,false); int main(){ ... } Regards. Michael Wisse (...) (24 years ago, 20-Apr-01, to lugnet.robotics.rcx.legos)