Hi
I have a data type and I can instantiate a variable of that type. like this:
The definition of FetchAdr is:
Now I have a class that faddr is a private (or public) variable
Assume the macros are defined properly.
The code compiles and links without any problem. However when I start the program, it says:
"undefined symbol: _ZN6nBPred14BPr edComponent8fad dr"
it says there no symbol for faddr.
any idea about that?
I have a data type and I can instantiate a variable of that type. like this:
Code:
FetchAddr faddr(VirtualMemoryAddress( 0x0a ));
Code:
struct FetchAddr {
Flexus::SharedTypes::VirtualMemoryAddress theAddress;
FetchAddr(Flexus::SharedTypes::VirtualMemoryAddress anAddress)
: theAddress(anAddress)
{ }
};
Code:
class FLEXUS_COMPONENT(BPred) {
static FetchAddr faddr;
public:
FLEXUS_COMPONENT_CONSTRUCTOR(BPred)
: base( FLEXUS_PASS_CONSTRUCTOR_ARGS )
{
faddr = VirtualMemoryAddress( 0x0a );
}
...
}
The code compiles and links without any problem. However when I start the program, it says:
"undefined symbol: _ZN6nBPred14BPr edComponent8fad dr"
it says there no symbol for faddr.
any idea about that?
Comment