[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RTLinux: C++ static members != good ?
I have modified the hello.cpp example that came with RTLinux. I moved class
A to a.h and then moved class B declarations to b.h and implementation to
b.cpp.
I can compile and run the modules no problem.
my problem comes when I try to make
int a; //from class A
static int a;
when I load the module I get an error like
error in b.o : unresolved symbol _1A.a
Any clue why this is? Can I not use static members with RTLinux? What is
an alternative to static?
Thank you for your help.
-Evan
poncholio@hotmail.com
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com