link libraries fail

Hi,
i have a big problem,
i tried to connect 2 libraries, but i failed.
My main programm should create an object of class1, and this class should generate an object of class two.
For example: Programm ----->class trafficlight ------> class LED
I tried everything, but no chance.
can anybody help me?

Ominum

p.s.: in the example i uploaded, it works just a little bit, but i am not able to use the functions of class test1 in the pde file

example.rar (1.11 KB)

but i am not able to use the functions of class test1 in the pde file

There is no evidence in the sketch that you have tried to use any methods of the test1 class in the pde. There is no proof that you are unable to do so.

What happens when you try? The mind-readers here all quit when they figured out what we thought of them.

You can paste small examples here you know. Not everyone is going to bother to download your .rar file and extract it. But I don't get this:

test2::test2(byte eins)
{  
 gruen = eins;                                                                  
test1 gruen(gruen);
gruen.on();
}

Huh? What are you doing here? Just explain in simple terms.

i tried to connect 2 libraries, but i failed.

In what way? Compile error? If so, what was it? Runtime problem? If so, what? What happened? What did you expect to happen?

PaulS:
The mind-readers here all quit when they figured out what we thought of them.

That's actually quite funny.