In reply to cgales:
My register_adapter was in reg_pkg and it used command_transaction whitch is part of the agent. I simply moved register_adapter to agent and solved collision problem, but i still want to know how to solve situtaion that i described in general.
If i have two packages:
package P;
class A;
int i;
B b1;
endclass : A
endpackage : P
package Q;
class B;
int j;
A a1;
endclass : B
endpackage : Q
How to put them in the same scope in questa?
When i try to typedeff one class it says that
Forward declaration for type ‘command_transaction’ was not defined.