I have a class_a and class_b classes (with their .h and .c files)
I create an instance of class_a into my main,cpp.
After I use it in other cpp files using 'extern' .
Ok, how I can to create an instance of class_b inside class_a to use it in this way :
class_a.class_b.mymethod
Now I have a unreferenced error.
A piece of code will be appreciated.
Thanks
I have the same, except than I create the B b in main.cpp, later I use it using 'extern B b'.
Another more thing is that all is encapsulated into a QT DLL....
I'm going to think something more....