Scott S
2003-12-01 04:33:54 UTC
First off, can anyone tell me exactly what uThisTask() returns?
I thought it would be a pointer to the current task which I could use to
figure out which task is in the KBA, but when I tryed to compare it to my
User pointers the compiler didn't like it. I got this from the compiler:
"no match for 'User& == uBaseTask&' operator"
My other question has to do with forward declaration. I've put the
line:
uTask User;
in my KBA header file, but when I compile my .cc file I get the
message:
kba.cc:100: invalid use of undefined type 'struct User'
kba.h:10: forward declaration of 'struct User'
I get the invalid use message on the line where I create my Users and
where I delete them. The line in the header file is where I put the
'uTask User;'. Anyone know what I'm doing wrong?
thx
Scott
I thought it would be a pointer to the current task which I could use to
figure out which task is in the KBA, but when I tryed to compare it to my
User pointers the compiler didn't like it. I got this from the compiler:
"no match for 'User& == uBaseTask&' operator"
My other question has to do with forward declaration. I've put the
line:
uTask User;
in my KBA header file, but when I compile my .cc file I get the
message:
kba.cc:100: invalid use of undefined type 'struct User'
kba.h:10: forward declaration of 'struct User'
I get the invalid use message on the line where I create my Users and
where I delete them. The line in the header file is where I put the
'uTask User;'. Anyone know what I'm doing wrong?
thx
Scott