Z
zs0723
Hi
i have an issue about the following case:
class A
{
int a ;
};
class B
{
A a;
}
so when we compile class A into a library a.so , B load a ' s
implemention dynamic.
Now i need to change A like this:
class A
{
int a;
int b;
}
and compile A to a libray a.so ,put into test environment , the
problem is that
i didn't recompile class B , so what's problem ?
from <<inside c++ object>> book ,we should recompile B athough it is
not modifed.
can you tell me what's problem if i didn't recomiple B class ,if it's
dependent class have modify data members ?
thanks
i have an issue about the following case:
class A
{
int a ;
};
class B
{
A a;
}
so when we compile class A into a library a.so , B load a ' s
implemention dynamic.
Now i need to change A like this:
class A
{
int a;
int b;
}
and compile A to a libray a.so ,put into test environment , the
problem is that
i didn't recompile class B , so what's problem ?
from <<inside c++ object>> book ,we should recompile B athough it is
not modifed.
can you tell me what's problem if i didn't recomiple B class ,if it's
dependent class have modify data members ?
thanks