Hy,
How can I stode a static data into a class from my main application.
What I have is this problem:
Class myClass{
public :
static CString string;
myClass();
~myClass();
};

In my main function I am trying to do something like this:
in the SoftwareUpdate.cpp file in the update function:
myClass::string=new Cstring("something"); // let's say for testing only.

the compliler says no err. but at link time ->
"link error: SoftwareUpdate.cpp 'myClass::string' referenced from 
'SoftwareUpdate.cpp:update' undefined.

I can't figure out why is that...

Any help?!

Regards, Iulia

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to