Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!ucsd!swrinde!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!sics.se!uplog.se!uplog.uplog.se!anderss From: anderss@uplog.se Newsgroups: comp.lang.c++ Subject: Sun C++ 2.0, SunOS 4.1 and lightweight processes Message-ID: Date: 24 Jul 90 05:42:42 GMT Sender: news@uplog.se (0000-news(0000)) Distribution: comp Organization: TeleLOGIC Uppsala AB Lines: 26 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 to explicitly include 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 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