anderss@uplog.se (07/24/90)
I am using Sun C++ release 2.0 on a Sun 3 machine running SunOS 4.1.
I have built a class 'thread' that encapsulates lightweight processes, but
ran into some problems with the Sun-supplied header files for lwp. I had to
modify <lwp/lwp.h> to explicitly include <lwp/lwpmachdep.h> to recognize
lwp_getregs() and lwp_setregs. OK, now it compiles and executes, but I get
warnings in the cc phase of the compilation to the effect that the compiler
expects function names in two #define statements in "lwp.h":
...
#define l_id stat_blocked.any_object.any_thread.thread_id
#define l_key stat_blocked.any_object.any_thread.thread_key
#define c_id stat_blocked.any_object.any_cv.cond_id
#define c_key stat_blocked.any_object.any_cv.cond_key
#define m_id stat_blocked.any_object.any_mon.monit_id
#define m_key stat_blocked.any_object.any_mon.monit_key
...
The l_key and c_key defines give the compilation warnings. What's happening?
How do I fix this ? Does anybody have a fixed version of the <lwp/lwp.h>
header file ? Plz reply soonest...
advTHANKSance / anderss@uplog.se
--
Real life: Anders Sjolund Email: anderss@uplog.se
Snail mail: Telesoft Uppsala AB Phone: +46 18 189409
Box 1218 Fax: +46 18 132039
S - 751 42 Uppsala, Sweden