Howdy,
The question is simple. Perhaps I missed the answer in the
CodeWarrior docs somewhere. I am simply unable to create any class
(static) variables. I want to make a single object to be
referenced by all instances of a particular class. That's pretty strait
forward.
Everything compiles fine, but the linker has a fit. I am using
Codewarior. Conceptually I coded the follwoing:
class B {
private:
//some private stuff here
public:
bmethod();
}
void b::bmethod() {
//definition here
}
class a {
private:
static b mybobobject;
public:
//some public stuff here
adostuff();
}
void a::adostuff() {
mybobobject.bmethod(); //or even a::mybobobject.bmethod()
}
The linker feels that a::mybobobject is undefined. Any insight?
Noah
--------------------------------------------------------------------------------
Noah J. Ternullo [EMAIL PROTECTED]
--------------------------------------------------------------------------------
"As a matter of constitutional tradition, in the absence of evidence to the
contrary, we presume that governmental regulation of the content of speech
is more likely to interfere with the free exchange of ideas than to
encourage it." - Supreme Court Justice John Paul Stevens
--------------------------------------------------------------------------------
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html